Removed email lookup on CE user activation (#2879)

GitOrigin-RevId: 567936295ef3b043adc7bbd735970f5ca6d91b73
This commit is contained in:
Miguel Serrano 2020-06-03 11:37:06 +02:00 committed by Copybot
parent 34a5bb386f
commit cab1335371
2 changed files with 2 additions and 2 deletions

View file

@ -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', {

View file

@ -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)