mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix tabbing
This commit is contained in:
parent
5c2492e785
commit
d92b01e8f2
@ -35,7 +35,7 @@ function DisplayAuthConfig($username, $password){
|
||||
$status = Status('Old password does not match', 'danger');
|
||||
}
|
||||
} else {
|
||||
// Log something
|
||||
error_log('CSRF violation');
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -45,7 +45,7 @@ function DisplayAuthConfig($username, $password){
|
||||
<div class="panel-heading"><i class="fa fa-lock fa-fw"></i>Configure Auth</div>
|
||||
<div class="panel-body">
|
||||
<p><?php echo $status; ?></p>
|
||||
<form role="form" action="/?page=admin_conf" method="POST">
|
||||
<form role="form" action="/?page=auth_conf" method="POST">
|
||||
<?php CSRFToken() ?>
|
||||
<div class="row">
|
||||
<div class="form-group col-md-4">
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
function CSRFToken() {
|
||||
?>
|
||||
<input type="hidden" name="csrf_token" value="<?php echo $csrf_token; ?>" />
|
||||
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION['csrf_token']; ?>" />
|
||||
<?php
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user