diff options
Diffstat (limited to 'app/src/oauth.rs')
-rw-r--r-- | app/src/oauth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/oauth.rs b/app/src/oauth.rs index 1b0661c..ca8ff3f 100644 --- a/app/src/oauth.rs +++ b/app/src/oauth.rs @@ -106,7 +106,7 @@ impl OAuthController { ])).send().await.expect("Could not send client registration") .json().await.expect("Could not parse client registration response"); - self.persistence.new_server(instance_domain.to_string(), registration_response.client_id.clone(), registration_response.name.to_string(), registration_response.client_secret).await; + self.persistence.new_server(instance_domain.to_string(), registration_response.client_id.clone(), registration_response.name.to_string(), registration_response.client_secret).await?; self.persistence.get_server(&instance_domain.to_string()).await.unwrap() }, @@ -155,7 +155,7 @@ impl OAuthController { let username = self.resolve_account(&state, &auth_session).await?; - self.persistence.new_account(username.clone(), domain.clone(), auth_session.api_token).await; + self.persistence.new_account(username.clone(), domain.clone(), auth_session.api_token).await?; // Remove state callback record {self.int.lock().await.open_callbacks.remove(&state)}; |