Skip to content

Commit

Permalink
Merge pull request #36 from ebenezerdon/redirection-error-161862366
Browse files Browse the repository at this point in the history
Fix redirection error on admin login
  • Loading branch information
ebenezerdon committed Nov 10, 2018
2 parents 3ae8a44 + 9a99e2d commit 210b161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UI/assets/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const loginUser = (e) => {
localStorage.setItem('accesstoken', data.token);
if (data.role === 'admin') {
window.location.replace('./pages/admindashboard.html');
return;
}
window.location.replace('./pages/userdashboard.html');
}
Expand Down

0 comments on commit 210b161

Please sign in to comment.