oops, forgot to make sure we're auth'ed
This commit is contained in:
parent
a598eec924
commit
40d09a4ee4
@ -120,7 +120,7 @@ if ($user->isAuthenticated()) {
|
||||
}
|
||||
}
|
||||
// one last time so we can sync with changes we made during this page
|
||||
if ($config['twofactor']['enabled']) {
|
||||
if ($user->isAuthenticated() && $config['twofactor']['enabled']) {
|
||||
if ($config['twofactor']['options']['details']) {
|
||||
$ea_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $ea_token, 5);
|
||||
$ea_sent = $user->token->doesTokenExist('account_edit', $_SESSION['USERDATA']['id']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user