mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Get part way through loading (to sync) #30
This commit is contained in:
1 parent
38ab4ba799
commit
1d404db209
31 files changed
+1049
-100
No files matched your search
@@ -27,12 +27,12 @@ impl <C: Clone + Send + 'static> UserState<C> {
|
||||
token: splits[1].to_owned(),
|
||||
refresh_token: splits[2].to_owned(),
|
||||
};
|
||||
let ext = if let Some(ext) = ext_f(&token) {
|
||||
ext
|
||||
if let Some(ext) = ext_f(&token) {
|
||||
log::debug!("Ignoring extra auth info: {:?}", ext);
|
||||
} else {
|
||||
return false;
|
||||
};
|
||||
match auth.authenticate(token, ext).await {
|
||||
}
|
||||
match auth.authenticate(token).await {
|
||||
Ok(user) => {
|
||||
let mut lock = self.state.write().unwrap();
|
||||
*lock = InitState::Authenticated(std::sync::Arc::new(user));
|
||||
|
||||
Reference in new issue
Block a user