mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:43:41 -05:00
11 lines
540 B
Diff
11 lines
540 B
Diff
--- /var/www/sharelatex/web/app/src/Features/User/UserRegistrationHandler.js
|
|
+++ /var/www/sharelatex/web/app/src/Features/User/UserRegistrationHandler.js
|
|
@@ -122,7 +122,7 @@ const UserRegistrationHandler = {
|
|
const ONE_WEEK = 7 * 24 * 60 * 60 // seconds
|
|
OneTimeTokenHandler.getNewToken(
|
|
'password',
|
|
- { user_id: user._id.toString(), email },
|
|
+ { user_id: user._id.toString(), email: user.email },
|
|
{ expiresIn: ONE_WEEK },
|
|
(err, token) => {
|
|
if (err != null) {
|