Alert on wrong credentials (#76)
This commit is contained in:
parent
6a3e248ea5
commit
ab3dd208c3
2 changed files with 8 additions and 1 deletions
|
|
@ -949,7 +949,13 @@ function showLoginFrame() {
|
|||
var data = e.data.substring(e.data.indexOf(":")+1);
|
||||
data = JSON.parse(data);
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
// Since this is the login page, invalid session implies bad credentials
|
||||
if(data.error == "Invalid session") {
|
||||
alert("Invalid username/password");
|
||||
}
|
||||
else {
|
||||
alert(data.error);
|
||||
}
|
||||
}
|
||||
else if(data.success) {
|
||||
session = data.session || "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue