Update login.html
This commit is contained in:
@@ -66,9 +66,13 @@
|
|||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
reloadServerPreview();
|
reloadServerPreview();
|
||||||
|
if(err.message=="User does not exist"){
|
||||||
|
alert("User does not exist!!!");
|
||||||
|
}else{
|
||||||
window.alert(err.message || 'unknown error occured');
|
window.alert(err.message || 'unknown error occured');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function queryFidoMetaDataService() {
|
function queryFidoMetaDataService() {
|
||||||
window.fetch('login.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
|
window.fetch('login.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
|
||||||
@@ -78,9 +82,7 @@
|
|||||||
if (json.success) {
|
if (json.success) {
|
||||||
window.alert(json.msg);
|
window.alert(json.msg);
|
||||||
} else {
|
} else {
|
||||||
if(json.msg=="User does not exist"){
|
throw new Error(json.msg);
|
||||||
alert("User does not exist!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}).catch(function(err) {
|
}).catch(function(err) {
|
||||||
window.alert(err.message || 'unknown error occured');
|
window.alert(err.message || 'unknown error occured');
|
||||||
|
|||||||
Reference in New Issue
Block a user