From d5012a296db177dbecf4711083aee8a888f8c9ef Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 15 Aug 2016 22:15:11 +0200 Subject: [PATCH] Fixed password reset. --- .../app/controllers/password_reset.coffee | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/password_reset.coffee b/app/assets/javascripts/app/controllers/password_reset.coffee index eb11c33ff..93e6ad899 100644 --- a/app/assets/javascripts/app/controllers/password_reset.coffee +++ b/app/assets/javascripts/app/controllers/password_reset.coffee @@ -13,7 +13,9 @@ class Index extends App.ControllerContent return # if we are logged in, no passwort reset is wanted, redirect to app - @authenticateCheckRedirect() + if @authenticateCheck() + @navigate '#' + return @navHide() @@ -83,8 +85,15 @@ class Verify extends App.ControllerContent constructor: -> super + # go back if feature is not enabled + if !@Config.get('user_lost_password') + @navigate '#' + return + # if we are logged in, no passwort reset is wanted, redirect to app - @authenticateCheckRedirect() + if @authenticateCheck() + @navigate '#' + return @navHide()