Create user record automatically when someone logs in on the website

Now that we are moving out of the private alpha, we should let everyone
in when they try to log into zed.dev.
This commit is contained in:
Antonio Scandurra 2023-03-14 12:25:04 +01:00
parent e7f78c4f74
commit cba41ef7c5
5 changed files with 48 additions and 19 deletions

View file

@ -104,11 +104,7 @@ impl TestServer {
});
let http = FakeHttpClient::with_404_response();
let user_id = if let Ok(Some(user)) = self
.app_state
.db
.get_user_by_github_account(name, None)
.await
let user_id = if let Ok(Some(user)) = self.app_state.db.get_user_by_github_login(name).await
{
user.id
} else {