mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 06:13:51 +00:00
Removed email lookup on CE user activation (#2879)
GitOrigin-RevId: 567936295ef3b043adc7bbd735970f5ca6d91b73
This commit is contained in:
parent
34a5bb386f
commit
cab1335371
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ const UserPagesController = {
|
|||
// Already seen this user, so account must be activate
|
||||
// This lets users keep clicking the 'activate' link in their email
|
||||
// as a way to log in which, if I know our users, they will.
|
||||
res.redirect(`/login?email=${encodeURIComponent(user.email)}`)
|
||||
res.redirect(`/login`)
|
||||
} else {
|
||||
req.session.doLoginAfterPasswordReset = true
|
||||
res.render('user/activate', {
|
||||
|
|
|
@ -328,7 +328,7 @@ describe('UserPagesController', function() {
|
|||
this.user.loginCount = 1
|
||||
this.res.redirect = url => {
|
||||
this.UserGetter.getUser.calledWith(this.user_id).should.equal(true)
|
||||
url.should.equal(`/login?email=${encodeURIComponent(this.user.email)}`)
|
||||
url.should.equal('/login')
|
||||
return done()
|
||||
}
|
||||
return this.UserPagesController.activateAccountPage(this.req, this.res)
|
||||
|
|
Loading…
Reference in a new issue