src/Security/RememberLoginHash.php
public function getNewHash(Member $member)
    {
        $generator = new RandomGenerator();
        $this->setToken($generator->randomToken('sha1'));
        return $member->encryptWithUserSettings($this->token);
    }
public function getNewHash(Member $member)
    {
        $generator = new RandomGenerator();
        $this->setToken($generator->randomToken('sha1'));
        return $member->encryptWithUserSettings($this->token);
    }
public function getNewHash ( Member $ member ) { $ generator = new RandomGenerator ( ) ; $ this -> setToken ( $ generator -> randomToken ( 'sha1' ) ) ; return $ member -> encryptWithUserSettings ( $ this -> token ) ; }
Creates a new random token and hashes it using the
member information
@param Member $member The logged in user
@return string The hash to be stored in the database
Creates a new random token and hashes it using the member information