overleaf/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee

22 lines
327 B
CoffeeScript
Raw Normal View History

2014-05-15 11:20:23 -04:00
module.exports =
requestPasswordReset: ->
# check user exists
# generate token
# send email token link
renderPasswordResetForm: ->
# check that the token is valid
# render html
changeUsersPasswordFromReset: ->
# check auth again
# check both passwords match
# set passowrd
# redir to login form