u
This commit is contained in:
@@ -35,6 +35,8 @@ if(isset($_SESSION["login"])){
|
||||
<button type="submit" class="btn btn-primary btn-block">Login</button>
|
||||
</form>
|
||||
<br>
|
||||
<p>Or</p>
|
||||
<button type="button" onclick="checkRegistration()">❔ Login with a passkey</button>
|
||||
<!-- php code to verify password-->
|
||||
<?php
|
||||
// Check if the form is submitted
|
||||
|
||||
@@ -67,7 +67,8 @@
|
||||
} catch (err) {
|
||||
reloadServerPreview();
|
||||
if(err.message=="User does not exist"){
|
||||
alert("User does not exist!!!");
|
||||
//we will display a warning here later on
|
||||
alert("User does not exist!!! check line 71 of login.html to set warning");
|
||||
}else{
|
||||
window.alert(err.message || 'unknown error occured');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user