Address PR comments

This commit is contained in:
Romain Neutron
2013-05-03 16:52:07 +02:00
parent 70b4912427
commit 71d0d83cd8
8 changed files with 107 additions and 5 deletions

View File

@@ -574,11 +574,21 @@ class Application extends SilexApplication
return $this['session']->getFlashBag()->get($type, $default);
}
/**
* Adds a temporary unlock data for a account-locked user
*
* @param integer $usr_id
*/
public function addUnlockLink($usr_id)
{
$this['session']->set('unlock_user_id', $usr_id);
}
/**
* Returns the temporary unlock data
*
* @return null|integer
*/
public function getUnlockLink()
{
if ($this['session']->has('unlock_user_id')) {