1
0

Prod version CTF

This commit is contained in:
2019-01-29 22:21:05 +01:00
parent 71d5ff415e
commit 7828640ed9
4 changed files with 71 additions and 4 deletions

View File

@ -47,10 +47,14 @@ if (isset($_POST['login']) && $_POST['login'] == 'Login') {
</div>";
$state->string = $html_login;
} elseif ( $num_row == 1 && $row['user'] === 'admin') {
$state->return = 'false';
$state->string = 'admin is desactivated. Use your login.';
} else {
$state->return = 'false';
$state->string = 'Access Denied';
}
} else {
$state->return = 'password';
$state->string = 'Password Missing';