Skip to content

Commit

Permalink
changed a return value of opAuthLoginFormMobileUID::isUtn() to consid…
Browse files Browse the repository at this point in the history
…er plugin configuration (fixes #1583)
  • Loading branch information
Kousuke Ebihara committed Sep 13, 2010
1 parent 6e11b9f commit 649971c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/form/opAuthLoginFormMobileUID.class.php
Expand Up @@ -42,7 +42,12 @@ public function configure()

public function isUtn()
{
return true;
$uidType = $this->adapter->getAuthConfig('uid_type');

return (
self::MUST_USE_MOBILE_UID == $uidType ||
(self::COOKIE_UID_AND_MOBILE_UID == $uidType && !sfContext::getInstance()->getRequest()->isCookie())
);
}

public function validateMobileUid($validator, $values, $arguments = array())
Expand Down

0 comments on commit 649971c

Please sign in to comment.