diff --git a/app/assets/javascripts/app/controllers/password_reset.coffee b/app/assets/javascripts/app/controllers/password_reset.coffee index ea392d9aa..ea1060dea 100644 --- a/app/assets/javascripts/app/controllers/password_reset.coffee +++ b/app/assets/javascripts/app/controllers/password_reset.coffee @@ -58,22 +58,13 @@ class Index extends App.ControllerContent ) success: (data) => - if data.message is 'ok' - # if in developer mode, redirect to set new password - if data.token && @Config.get('developer_mode') is true - redirect = => - @navigate "#password_reset_verify/#{data.token}" - @delay(redirect, 2000) - @render(sent: true) - - else - @$('[name=username]').val('') - @notify( - type: 'error' - msg: App.i18n.translateContent('Username or email address invalid, please try again.') - ) - @formEnable( @el.find('.form-password') ) + # if in developer mode, redirect to set new password + if data.token && @Config.get('developer_mode') is true + redirect = => + @navigate "#password_reset_verify/#{data.token}" + @delay(redirect, 2000) + @render(sent: true) App.Config.set('password_reset', Index, 'Routes') diff --git a/app/assets/javascripts/app/views/password/reset.jst.eco b/app/assets/javascripts/app/views/password/reset.jst.eco index 1fd5fc24a..2892223a3 100644 --- a/app/assets/javascripts/app/views/password/reset.jst.eco +++ b/app/assets/javascripts/app/views/password/reset.jst.eco @@ -4,7 +4,10 @@ <% if @sent: %>
<%- @T('If you don\'t receive instructions within a minute or two, check your email\'s spam and junk filters, or try resending your request.') %>
- » <%- @T('again') %> « + <% else: %>