Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -147,7 +147,7 @@ abstract class _OAuth1 extends \IPS\Login\Handler
|
||||
}
|
||||
catch ( \Exception $e )
|
||||
{
|
||||
\IPS\Log::i( $e, 'twitter' );
|
||||
\IPS\Log::log( $e, 'twitter' );
|
||||
throw new \IPS\Login\Exception( 'generic_error', \IPS\Login\Exception::INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ abstract class _OAuth1 extends \IPS\Login\Handler
|
||||
}
|
||||
catch ( \Exception $e )
|
||||
{
|
||||
\IPS\Log::i( $e, 'twitter' );
|
||||
\IPS\Log::log( $e, 'twitter' );
|
||||
throw new \IPS\Login\Exception( 'generic_error', \IPS\Login\Exception::INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
|
||||
@@ -871,4 +871,21 @@ abstract class _OAuth2 extends \IPS\Login\Handler
|
||||
{
|
||||
return isset( $this->settings['client_secret'] ) ? $this->settings['client_secret'] : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* [Node] Save Add/Edit Form
|
||||
*
|
||||
* @param array $values Values from the form
|
||||
* @return void
|
||||
*/
|
||||
public function saveForm( $values )
|
||||
{
|
||||
/* If we are prompting users we need to disable force syncing */
|
||||
if( isset( $values['login_settings']['real_name'] ) AND $values['login_settings']['real_name'] == 0 )
|
||||
{
|
||||
$values['login_settings']['update_name_changes'] = "disabled";
|
||||
}
|
||||
|
||||
parent::saveForm( $values );
|
||||
}
|
||||
}
|
||||
@@ -167,6 +167,12 @@ class _Standard extends \IPS\Login\Handler
|
||||
*/
|
||||
public function canChangePassword( \IPS\Member $member )
|
||||
{
|
||||
/* If it's forced, then yes. */
|
||||
if ( $member->members_bitoptions['password_reset_forced'] AND !$member->members_pass_hash )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return $this->canProcess( $member );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user