overleaf/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee
2014-05-15 16:20:23 +01:00

21 lines
327 B
CoffeeScript

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