mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
bugfix
This commit is contained in:
parent
cfb5373516
commit
8b761dbab5
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ app = Sammy('#main', function (sam) {
|
|||
c.flash('fail', 'Wrong password');
|
||||
if (xhr.status == 401) {
|
||||
c.flash('fail', 'Wrong password');
|
||||
} else if (typeof xhr.responseJSON !== undefined) {
|
||||
} else if (typeof xhr.responseJSON !== 'undefined') {
|
||||
c.flash('fail', xhr.responseJSON.error);
|
||||
} else {
|
||||
if (uri == '/postinstall') {
|
||||
|
|
Loading…
Reference in a new issue