Update login.html

This commit is contained in:
jakani24
2024-04-26 15:06:37 +02:00
parent a1dc135b3e
commit 18af5489d2

View File

@@ -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');