Bug(バグ) #1182 » ticket-1182.patch
lib/user/opSecurityUser.class.php | ||
---|---|---|
}
|
||
$result = Doctrine::getTable('Member')->find($this->getMemberId());
|
||
if ($result)
|
||
if ($result && $result->getIsActive())
|
||
{
|
||
$this->serializedMember = serialize($result);
|
||
}
|
||
... | ... | |
*/
|
||
public function initializeCredentials()
|
||
{
|
||
$memberId = $this->getMemberId();
|
||
opActivateBehavior::disable();
|
||
$member = $this->getMember();
|
||
opActivateBehavior::enable();
|
||
$isSNSMember = $this->isSNSMember();
|
||
if ($isSNSMember)
|
||
if (!$member || $member instanceof opAnonymousMember || $member->getIsLoginRejected())
|
||
{
|
||
if ($this->getMember()->getIsLoginRejected())
|
||
{
|
||
$isSNSMember = false;
|
||
}
|
||
$this->logout();
|
||
$isSNSMember = false;
|
||
}
|
||
else
|
||
{
|
||
$isSNSMember = (bool)$member->getIsActive();
|
||
}
|
||
// for BC
|
||
$this->setIsSNSMember($isSNSMember);
|
||
if ($isSNSMember)
|
||
{
|
||
$this->getMember()->updateLastLoginTime();
|
||
$member->updateLastLoginTime();
|
||
}
|
||
}
|
||
... | ... | |
public function setIsSNSMember($isSNSMember)
|
||
{
|
||
$this->setAuthenticated($isSNSMember);
|
||
// for BC
|
||
if ($isSNSMember)
|
||
{
|
||
$this->setAuthenticated(true);
|
||
$this->addCredential('SNSMember');
|
||
}
|
||
else
|
||
{
|
||
// Set authenticated is false and remove credencials.
|
||
$this->setAuthenticated(false);
|
||
}
|
||
}
|
||
public function setIsSNSRegisterBegin($isSNSRegisterBegin)
|