We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61bf8a commit a8da019Copy full SHA for a8da019
1 file changed
API/Controller/OAuth/SignupFinalize.cs
@@ -110,8 +110,11 @@ public async Task<IActionResult> OAuthSignupFinalize(
110
return Problem(SignupError.UsernameOrEmailExists);
111
}
112
113
- // Authenticate the client (create session and set session cookie)
114
- await CreateSession(newUser.Value.Id, domain);
+ // Authenticate the client if its activated (create session and set session cookie)
+ if (newUser.Value.ActivatedAt is not null)
115
+ {
116
+ await CreateSession(newUser.Value.Id, domain);
117
+ }
118
119
// Clear the temporary OAuth flow cookie.
120
await HttpContext.SignOutAsync(OAuthConstants.FlowScheme);
0 commit comments