feat(frontend): add discord callback page
this only handles existing accounts for now, still need to write an action function
This commit is contained in:
parent
116d0577a7
commit
ff22530f0a
13 changed files with 196 additions and 66 deletions
|
@ -59,7 +59,8 @@ public class EmailAuthController(
|
|||
var ticket = AuthUtils.RandomToken();
|
||||
await keyCacheService.SetKeyAsync($"email:{ticket}", state.Email, Duration.FromMinutes(20));
|
||||
|
||||
return Ok(new AuthController.CallbackResponse(false, ticket, state.Email));
|
||||
return Ok(new AuthController.CallbackResponse(HasAccount: false, Ticket: ticket, RemoteUsername: state.Email,
|
||||
User: null, Token: null, ExpiresAt: null));
|
||||
}
|
||||
|
||||
[HttpPost("complete-registration")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue