mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #763 from rschamp/bugfix/3878
Redirect students that must reset their password
This commit is contained in:
commit
2b1cf25f88
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,11 @@ module.exports.refreshSession = function () {
|
|||
body.flags.must_complete_registration &&
|
||||
window.location.pathname !== '/classes/complete_registration') {
|
||||
return window.location = '/classes/complete_registration';
|
||||
} else if (
|
||||
body.flags &&
|
||||
body.flags.must_reset_password &&
|
||||
window.location.pathname !== '/classes/student_password_reset/') {
|
||||
return window.location = '/classes/student_password_reset/';
|
||||
} else {
|
||||
dispatch(tokenActions.getToken());
|
||||
dispatch(module.exports.setSession(body));
|
||||
|
|
Loading…
Reference in a new issue