mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 04:35:26 -05:00
fix tests, whoops
This commit is contained in:
parent
e1b3f3542c
commit
133c4759f8
3 changed files with 4 additions and 3 deletions
|
@ -93,7 +93,6 @@ module.exports =
|
|||
|
||||
buildEmail: (templateName, opts)->
|
||||
template = templates[templateName]
|
||||
console.log opts
|
||||
opts.body = template.compiledTemplate(opts)
|
||||
return {
|
||||
subject : template.subject(opts)
|
||||
|
|
|
@ -25,6 +25,6 @@ module.exports =
|
|||
TokenGenerator.getUserIdFromToken token, (err, user_id)->
|
||||
if err then return callback(err)
|
||||
if !user_id?
|
||||
logger.err email:email, "token for password reset did not find user_id"
|
||||
logger.err user_id:user_id, "token for password reset did not find user_id"
|
||||
return callback("no user found")
|
||||
AuthenticationManager.setUserPassword user_id, password, callback
|
|
@ -27,7 +27,9 @@ describe "PasswordResetHandler", ->
|
|||
"../Email/EmailHandler":@EmailHandler
|
||||
"../Authentication/AuthenticationManager":@AuthenticationManager
|
||||
"settings-sharelatex": @settings
|
||||
"logger-sharelatex": log:->
|
||||
"logger-sharelatex":
|
||||
log:->
|
||||
err:->
|
||||
@token = "12312321i"
|
||||
@user_id = "user_id_here"
|
||||
@user =
|
||||
|
|
Loading…
Reference in a new issue