fixing some bugs with passkeys
This commit is contained in:
@@ -239,6 +239,7 @@ async function checkRegistration() {
|
|||||||
<br>
|
<br>
|
||||||
<p>Or</p>
|
<p>Or</p>
|
||||||
<button type="button" class="btn btn-primary btn-block" onclick="checkRegistration()">Login with a passkey</button>
|
<button type="button" class="btn btn-primary btn-block" onclick="checkRegistration()">Login with a passkey</button>
|
||||||
|
<br>
|
||||||
<!-- php code to verify password-->
|
<!-- php code to verify password-->
|
||||||
<?php
|
<?php
|
||||||
// Check if the form is submitted
|
// Check if the form is submitted
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ try {
|
|||||||
$_SESSION["perms"]=$row["perms"];
|
$_SESSION["perms"]=$row["perms"];
|
||||||
$_SESSION["email"]=$row["email"];
|
$_SESSION["email"]=$row["email"];
|
||||||
$_SESSION["telegram_id"]=$row["telegram_id"];
|
$_SESSION["telegram_id"]=$row["telegram_id"];
|
||||||
|
$_SESSION["allow_pw_llgin"]=$row["allow_pw_login"];
|
||||||
|
|
||||||
$return = new stdClass();
|
$return = new stdClass();
|
||||||
$return->success = true;
|
$return->success = true;
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
<input type="text" class="form-control" id="perms" name="perms" value="<?php echo($perms); ?>" readonly>
|
<input type="text" class="form-control" id="perms" name="perms" value="<?php echo($perms); ?>" readonly>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="pw_login">Allow password logins. (Please make shure you have a passkey, if you disable this!)</label>
|
|
||||||
<?php
|
<?php
|
||||||
if($_SESSION["allow_pw_login"]==1){
|
if($_SESSION["allow_pw_login"]==1){
|
||||||
echo("<input type='checkbox' id='pw_login' name='pw_login' checked>");
|
echo("<input type='checkbox' id='pw_login' name='pw_login' checked>");
|
||||||
@@ -92,8 +91,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
echo("<input type='checkbox' id='pw_login' name='pw_login'>");
|
echo("<input type='checkbox' id='pw_login' name='pw_login'>");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<label for="pw_login">Allow password logins. (Please make shure you have a passkey, if you disable this!)</label>
|
||||||
<input type="checkbox" id="pw_login" name="pw_login">
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<button type="submit" class="btn btn-primary btn-block">Update</button>
|
<button type="submit" class="btn btn-primary btn-block">Update</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user