Fixes a small issue with the redirect after logging in. If app.previousUrl is undefined (from accessing the page directly), login would fail to redirect you because of an error with indexOf on the undefined app.previousUrl.

v1.18.x
Andrew Darqui 12 years ago
parent ef47f3fd15
commit b2e81b5d17

@ -35,6 +35,9 @@ define(function() {
$('#login-error-notify').show();
} else {
$('#login-error-notify').hide();
if(!app.previousUrl) { app.previousUrl = '/'; }
if(app.previousUrl.indexOf('/reset/') != -1)
window.location.replace(RELATIVE_PATH + "/?loggedin");
else

Loading…
Cancel
Save