Browse Source

Prevent management panel reauthentication in a single request

Resolves #208.
shortcut
Trevor Slocum 1 year ago
parent
commit
1a898e353c
  1. 4
      inc/functions.php

4
inc/functions.php

@ -366,6 +366,10 @@ function manageCheckLogIn($requireKey) {
$_SESSION['tinyib_key'] = hashData(TINYIB_MANAGEKEY);
$_SESSION['tinyib_username'] = $a['username'];
$_SESSION['tinyib_password'] = $a['password'];
// Prevent reauthentication
$_POST['username'] = '';
$_POST['managepassword'] = '';
}
if (isset($_SESSION['tinyib_username']) && isset($_SESSION['tinyib_password'])) {

Loading…
Cancel
Save