Fix identity extraction default tip
authorclebeaupin
Tue, 01 Jun 2010 17:40:18 +0200
changeset 134 8438ed258dd1
parent 133 81c6a28457a5
Fix identity extraction
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
+}