Commit b35d7606 authored by Ray Schamp's avatar Ray Schamp Committed by GitHub

Merge pull request #766 from rschamp/bugfix/password-reset

Don't redirect to password reset on complete_registration
parents 2b1cf25f 0b1f7084
...@@ -82,6 +82,7 @@ module.exports.refreshSession = function () { ...@@ -82,6 +82,7 @@ module.exports.refreshSession = function () {
} else if ( } else if (
body.flags && body.flags &&
body.flags.must_reset_password && body.flags.must_reset_password &&
!body.flags.must_complete_registration &&
window.location.pathname !== '/classes/student_password_reset/') { window.location.pathname !== '/classes/student_password_reset/') {
return window.location = '/classes/student_password_reset/'; return window.location = '/classes/student_password_reset/';
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment