login message for wrong user/password fixed

parent 361e6807
...@@ -85,13 +85,11 @@ function LoginCtrl( ...@@ -85,13 +85,11 @@ function LoginCtrl(
$scope.submitted = false; $scope.submitted = false;
delete $window.sessionStorage.token; delete $window.sessionStorage.token;
if (err.search("without students") > 0) { if (err.search("without students") > 0) {
$translate('no_students_for_user').then(function (translation) { ngToast.warning($translate.instant('no_students_for_user'));
ngToast.warning({ content: translation });
});
} else if (err.search("not been activated") > 0) { } else if (err.search("not been activated") > 0) {
$translate('inactive_account').then(function (translation) { ngToast.danger($translate.instant('inactive_account'));
ngToast.danger({ content: translation }); } else {
}); ngToast.danger($translate.instant("login_fail"));
} }
}); });
}; };
......
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 sign in to comment