# HG changeset patch # User clebeaupin # Date 1275406818 -7200 # Node ID 8438ed258dd14981a2681bd7a3c512903d161aa8 # Parent 81c6a28457a55664597442d7a640efb7f7a7b3e1 Fix identity extraction diff -r 81c6a28457a5 -r 8438ed258dd1 web/thdProject/apps/frontend/modules/account/actions/openidLoginAction.class.php --- a/web/thdProject/apps/frontend/modules/account/actions/openidLoginAction.class.php Wed May 12 15:22:12 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/account/actions/openidLoginAction.class.php Tue Jun 01 17:40:18 2010 +0200 @@ -14,7 +14,7 @@ if ($authResult['result'] == sfPHPOpenID::AUTH_SUCCESS) { // User is authenticated by open id provider $serviceUri = sfConfig::get('app_openid_service_uri'); - $login = substr($authResult['identity'], strlen($serviceUri)); + $login = substr($authResult['identity'], strlen($serviceUri)-1); $login = str_replace('/', '', $login); $user->login($login); } else { @@ -23,4 +23,4 @@ return $this->redirect('@homepage'); } -} \ No newline at end of file +}