This code generates hashed password
class Token {
public static function generate()
{
return Session::put(Config::get('session/token_name'), md5(uniqid()));
}
public static function check($token)
{
$tokenName = Config::get('session/token_name');
if (Session::exists($tokenName) && $token === Session::get($tokenName))
{
return true;
}
return false;
}
}
But then I can't debug this program , please what's wrong it. thanks in ADVANCE