Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
553c6402
authored
Mar 04, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
login message for wrong user/password fixed
parent
361e6807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
sails/src/assets/scripts/modules/login/controllers/login.js
sails/src/assets/scripts/modules/login/controllers/login.js
View file @
553c6402
...
...
@@ -85,13 +85,11 @@ function LoginCtrl(
$scope
.
submitted
=
false
;
delete
$window
.
sessionStorage
.
token
;
if
(
err
.
search
(
"without students"
)
>
0
)
{
$translate
(
'no_students_for_user'
).
then
(
function
(
translation
)
{
ngToast
.
warning
({
content
:
translation
});
});
ngToast
.
warning
(
$translate
.
instant
(
'no_students_for_user'
));
}
else
if
(
err
.
search
(
"not been activated"
)
>
0
)
{
$translate
(
'inactive_account'
).
then
(
function
(
translation
)
{
ngToast
.
danger
({
content
:
translation
});
}
);
ngToast
.
danger
(
$translate
.
instant
(
'inactive_account'
));
}
else
{
ngToast
.
danger
(
$translate
.
instant
(
"login_fail"
)
);
}
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment