mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 08:17:28 -05:00
12 lines
540 B
Diff
12 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) {
|