Hello.  i am tring to implement sfGuard (for 1.0) . 
What  i changed is crypt method to md5. 
When i try to signin. 

    // signin
    $this->setAttribute('user_id', $user->getId(), 'sfGuardSecurityUser');
    $this->setAuthenticated(true);
    $this->clearCredentials();
    $this->addCredentials($user->getAllPermissionNames());

    // save last login
    $user->setLastLogin(time());
    $user->save($con);


   $user->setLastLogin(time());
it updates table. No problem.  But it is not authenticating somehow. 


die("auth is :" . $this->isAuthenticated());

Result is empty. 
Result :
"auth is:"

I could not understand why auth problem. Some authority problems?

i created sfGuard module in my modules.i overried signin method. 

but never enters here :

if( $this->getUser()->isAuthenticated() )


Thanks in advance!






      ___________________________________________________________________
Yahoo! Türkiye açıldı!  http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to