mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #7299 from overleaf/jpa-handle-deleted-user
[web] redirect deleted users from settings page to log out page GitOrigin-RevId: c033387ac9282a8e629455a4d3136655575c078a
This commit is contained in:
parent
d949567391
commit
2677984b93
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ const UserPagesController = {
|
|||
if (err != null) {
|
||||
return next(err)
|
||||
}
|
||||
if (!user) {
|
||||
// The user has just deleted their account.
|
||||
return res.redirect('/logout')
|
||||
}
|
||||
res.render('user/settings', {
|
||||
title: 'account_settings',
|
||||
user,
|
||||
|
|
Loading…
Reference in a new issue