diff --git a/src/controllers/forgotpassword.js b/src/controllers/forgotpassword.js index bb9489a11a3..ac010a9b34b 100644 --- a/src/controllers/forgotpassword.js +++ b/src/controllers/forgotpassword.js @@ -12,9 +12,12 @@ define([], function() { }); if ("PinCode" == result.Action) { var msg = Globalize.translate("MessageForgotPasswordFileCreated"); - return msg += "
", msg += "
", msg += "Enter PIN here to finish Password Reset" ,msg += "
",msg += result.PinFile, msg += "
", void Dashboard.alert({ + return msg += "
", msg += "
", msg += "Enter PIN here to finish Password Reset
" ,msg += "
",msg += result.PinFile, msg += "
", void Dashboard.alert({ message: msg, - title: Globalize.translate("HeaderForgotPassword") + title: Globalize.translate("HeaderForgotPassword"), + callback: function() { + Dashboard.navigate("forgotpasswordpin.html") + } }) } } @@ -31,4 +34,4 @@ define([], function() { } view.querySelector("form").addEventListener("submit", onSubmit) } -}); \ No newline at end of file +});