Skip to content

Commit

Permalink
Fixed issue #7021: Web server authentication broken
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 10, 2012
1 parent 88f92bf commit 76160fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/core/UserIdentity.php
Expand Up @@ -78,8 +78,9 @@ public function authenticate($sOneTimePassword='')
$aUserMappings=Yii::app()->getConfig("auth_webserver_user_map");
if (isset($aUserMappings[$sUser]))
{
$this->username = $sUser = $aUserMappings[$sUser];
$sUser = $aUserMappings[$sUser];
}
$this->username = $sUser;

$oUser=User::model()->findByAttributes(array('users_name'=>$sUser));
if (is_null($oUser))
Expand Down

0 comments on commit 76160fb

Please sign in to comment.