error in commit 6ad319 fixed

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