Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -265,4 +265,22 @@ class _mfa extends \IPS\Dispatcher\Controller
|
||||
|
||||
return (string) $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset security answers
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function resetSecurityAnswers()
|
||||
{
|
||||
\IPS\Session::i()->csrfCheck();
|
||||
|
||||
\IPS\Db::i()->delete( 'core_security_answers' );
|
||||
\IPS\Db::i()->update( 'core_members', "members_bitoptions2=members_bitoptions2 &~ 512" );
|
||||
|
||||
/* Log MFA reset */
|
||||
\IPS\Session::i()->log( 'acplogs__mfa_questions_reset' );
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( "app=core&module=settings&controller=mfa&tab=handlers&do=settings&key=questions" ), 'acplogs__mfa_questions_reset' );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user