error in commit 6ad319 fixed

parent 6ad31911
...@@ -110,11 +110,13 @@ function LoginCtrl( ...@@ -110,11 +110,13 @@ 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) {
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) { } else if (err.search("not been activated") > 0) {
ngToast.danger($translate.instant('inactive_account')); $translate('inactive_account').then(function (translation) {
} else { ngToast.danger({ content: translation });
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