Fixed password reset.
This commit is contained in:
parent
172fc00155
commit
d5012a296d
1 changed files with 11 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue