You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pointercrate-user: Add backend support for oauth registrations
It works pretty much the same as the login/link flow, except the payload
now also contains a username to register under. Put it into a different
endpoint though, to avoid having to think about weird interactions of
"what happens when registering and already being logged in?".
Signed-off-by: stadust <43299462+stadust@users.noreply.github.com>
None => AuthenticationType::legacy(user, row.password_hash.ok_or_else(|| CoreError::internal_server_error("Non-oauth user without password in database!"))?),
28
+
None => AuthenticationType::legacy(
29
+
user,
30
+
row.password_hash
31
+
.ok_or_else(|| CoreError::internal_server_error("Non-oauth user without password in database!"))?,
None => AuthenticationType::legacy(user, row.password_hash.ok_or_else(|| CoreError::internal_server_error("Non-oauth user without password in database!"))?),
60
+
None => AuthenticationType::legacy(
61
+
user,
62
+
row.password_hash
63
+
.ok_or_else(|| CoreError::internal_server_error("Non-oauth user without password in database!"))?,
0 commit comments