Skip to content
Permalink
Browse files

modified to follow changes of opWebRequest::getMobileFallbackUID() (r…

…efs #2220)
  • Loading branch information...
co3k committed Aug 18, 2011
1 parent 1e47efd commit 4c320320554171a96d13526c26a791591da72936
Showing with 10 additions and 3 deletions.
  1. +3 −2 lib/form/opAuthLoginFormMobileUID.class.php
  2. +7 −1 lib/user/opAuthAdapterMobileUID.class.php
@@ -30,7 +30,8 @@ public function configure()
$this->setValidatorSchema(new sfValidatorSchema(array(
'guid' => new sfValidatorString(array('required' => false)),
'mobile_uid' => new sfValidatorString(array('required' => false)),
'mobile_uid_fallback' => new sfValidatorString(array('required' => false)),
'mobile_uid_fallback_op3' => new sfValidatorString(array('required' => false)),
'mobile_uid_fallback_op2' => new sfValidatorString(array('required' => false)),
'mobile_cookie_uid' => new sfValidatorString(array('required' => false)),
)));
@@ -73,7 +74,7 @@ public function validateMobileUid($validator, $values, $arguments = array())
return $values;
}
$keys = array('mobile_uid', 'mobile_uid_fallback');
$keys = array('mobile_uid', 'mobile_uid_fallback_op3', 'mobile_uid_fallback_op2');
foreach ($keys as $key)
{
@@ -27,7 +27,13 @@ public function getAuthParameters()
if (is_callable(array($this->getRequest(), 'getMobileFallbackUID')) && $this->getAuthConfig('allow_fallback_uid'))
{
$params['mobile_uid_fallback'] = $this->getRequest()->getMobileFallbackUID();
$fallbacks = $this->getRequest()->getMobileFallbackUID();
if (isset($fallbacks[0])) {
$params['mobile_uid_fallback_op3'] = $fallbacks[0];
}
if (isset($fallbacks[1])) {
$params['mobile_uid_fallback_op2'] = $fallbacks[1];
}
}
return $params;

0 comments on commit 4c32032

Please sign in to comment.
You can’t perform that action at this time.