Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -551,6 +551,12 @@ class _Handler extends \IPS\MFA\MFAHandler
|
||||
*/
|
||||
public function toggle( $enabled )
|
||||
{
|
||||
/* This handler is deprecated, so if it's already disabled, don't allow it to be re-enabled */
|
||||
if( !$this->isEnabled() )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ( $enabled )
|
||||
{
|
||||
static::verifyApiKey( \IPS\Settings::i()->authy_key );
|
||||
@@ -566,6 +572,11 @@ class _Handler extends \IPS\MFA\MFAHandler
|
||||
*/
|
||||
public function acpSettings()
|
||||
{
|
||||
if( !$this->isEnabled() )
|
||||
{
|
||||
\IPS\Output::i()->error( 'authy_deprecated_message', '2C345/3' );
|
||||
}
|
||||
|
||||
$form = new \IPS\Helpers\Form;
|
||||
|
||||
$form->add( new \IPS\Helpers\Form\Text( 'authy_key', \IPS\Settings::i()->authy_key, TRUE, array(), function( $val ) {
|
||||
|
||||
Reference in new issue
Block a user