On Fri, 28 May 2010, f1gm3nt wrote:
> I found a way to do it, here's the code
>
> sfContext::createInstance($this->configuration);
> $this->logSection('user', 'logging user in');
> $user = sfContext::getInstance()->getUser();
> $user->setAttribute('user_id', '1', 'sfGuardSecurityUser');
> $user->setAuthenticated(true);
> $user->clearCredentials();
> $user->addCredentials($user->getAllPermissionNames());
> $user->setAttribute('workingClient', $options['workingClient']);
> $this->logSection('user', 'User has been logged in');
i.e. you faked it with a mock object.
--
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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