oops, forgot to make sure we're auth'ed

This commit is contained in:
xisi 2014-01-15 11:10:36 -05:00
parent a598eec924
commit 40d09a4ee4

View File

@ -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']);