mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): redirect to old page after login via 404 page (#8588)
fix AF-1487 When visit a cloud worskapce page without login, we should allow the user to redirect back to that page after login. The logic is only added for this case, including login with email magin link + google login. Login with password is already working without changes.
This commit is contained in:
@@ -111,7 +111,6 @@ export class OAuthController {
|
||||
await this.auth.setCookies(req, res, user.id);
|
||||
res.send({
|
||||
id: user.id,
|
||||
/* @deprecated */
|
||||
redirectUri: state.redirectUri,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user