Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

+14 -12
View File
@@ -828,23 +828,23 @@ abstract class _Handler extends \IPS\Node\Model
{
$form->addHeader('login_method_basic_settings');
$form->add( new \IPS\Helpers\Form\Translatable( 'login_method_name', NULL, TRUE, array( 'app' => 'core', 'key' => ( $this->id ? 'login_method_' . $this->id : NULL ) ) ) );
if ( !( $this instanceof \IPS\Login\Handler\Standard ) )
{
if ( !( $this instanceof \IPS\Login\Handler\Standard ) ) {
$self = $this;
$form->add( new \IPS\Helpers\Form\YesNo( 'login_acp', $this->id ? $this->acp : static::$enableAcpLoginByDefault, FALSE, array(), function( $val ) use ( $self )
{
if ( !$val )
{
foreach ( \IPS\Login::methods() as $method )
{
if ( $method != $self and $method->canProcess( \IPS\Member::loggedIn() ) and $method->acp )
{
$form->add(new \IPS\Helpers\Form\YesNo('login_acp', $this->id ? $this->acp : static::$enableAcpLoginByDefault, FALSE, array(), function ($val) use ($self) {
if (!$val) {
foreach (\IPS\Login::methods() as $method) {
if ($method != $self and $method->canProcess(\IPS\Member::loggedIn()) and $method->acp) {
return true;
}
}
throw new \DomainException( 'login_handler_cannot_disable_acp' );
throw new \DomainException('login_handler_cannot_disable_acp');
}
} ) );
}));
}
$form->add( new \IPS\Helpers\Form\YesNo( 'login_front', $this->id ? $this->front : static::$enableAcpLoginByDefault, FALSE, array() ) );
if ( !( $this instanceof \IPS\Login\Handler\Standard ) ) {
$form->add( new \IPS\Helpers\Form\Radio( 'login_register', $this->id ? $this->register : TRUE, FALSE, array(
'options' => array(
1 => 'login_register_enabled',
@@ -856,6 +856,8 @@ abstract class _Handler extends \IPS\Node\Model
) ) );
}
$form->add( new \IPS\Helpers\Form\YesNo( 'login_front', $this->id ? $this->front : static::$enableAcpLoginByDefault, FALSE, array() ) );
foreach ( $this->acpForm() as $key => $field )
{
if ( \is_string( $field ) )