Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -150,7 +150,7 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->_cachedLinks[ $member->member_id ] = \IPS\Db::i()->select( '*', 'core_login_links', array( 'token_login_method=? AND token_member=? AND token_linked=1', $this->id, $member->member_id ) )->first();
|
||||
$this->_cachedLinks[ $member->member_id ] = \IPS\Db::i()->select( '*', 'core_login_links', array( 'token_login_method=? AND token_member=? AND token_linked=1', $this->id, $member->member_id ), NULL, NULL, NULL, NULL, \IPS\Db::SELECT_FROM_WRITE_SERVER )->first();
|
||||
}
|
||||
catch ( \UnderflowException $e )
|
||||
{
|
||||
@@ -340,6 +340,7 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
public function completeLink( \IPS\Member $member, $details )
|
||||
{
|
||||
\IPS\Db::i()->update( 'core_login_links', array( 'token_linked' => 1 ), array( 'token_login_method=? AND token_member=?', $this->id, $member->member_id ) );
|
||||
unset( $this->_cachedLinks[ $member->member_id ] );
|
||||
|
||||
$member->logHistory( 'core', 'social_account', array(
|
||||
'service' => static::getTitle(),
|
||||
@@ -809,6 +810,17 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
return parent::formatFormValues( $values );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test Compatibility
|
||||
*
|
||||
* @return bool
|
||||
* @throws \LogicException
|
||||
*/
|
||||
public static function testCompatibility()
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test Settings
|
||||
@@ -818,7 +830,7 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
*/
|
||||
public function testSettings()
|
||||
{
|
||||
return TRUE;
|
||||
return static::testCompatibility();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user