Remember endpoint we authenticated against in returned SyncAuth (#2864)

* Include endpoint we authed against in response

* Add self to contributors
This commit is contained in:
Shawn M Moore 2023-12-04 00:05:29 -05:00 committed by GitHub
parent 91335b834f
commit f447f89d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -152,6 +152,7 @@ Ben Olson <github.com/grepgrok>
Akash Reddy <github.com/akashreddy03>
Lucio Sauer <watermanpaint@posteo.net>
Gustavo Sales <gustavosmendes14@gmail.com>
Shawn M Moore <https://github.com/sartak>
********************

View file

@ -283,7 +283,7 @@ impl Backend {
let sync_fut = sync_login(
input.username,
input.password,
input.endpoint,
input.endpoint.clone(),
self.web_client().clone(),
);
let abortable_sync = Abortable::new(sync_fut, abort_reg);
@ -293,7 +293,7 @@ impl Backend {
};
ret.map(|a| anki_proto::sync::SyncAuth {
hkey: a.hkey,
endpoint: None,
endpoint: input.endpoint,
io_timeout_secs: None,
})
}