public function generatePasswordResetHash()
    {
        $hashProvider = HashProvider::getProvider();
        $hash = sha1($hashProvider->createHash($this->UserID . uniqid(), uniqid("salt")));

        $this->PasswordResetHash = $hash;
        $this->PasswordResetDate = "now";
        $this->save();

        return $hash;
    }
public function generatePasswordResetHash()
    {
        $hashProvider = HashProvider::getProvider();
        $hash = sha1($hashProvider->createHash($this->UserID . uniqid(), uniqid("salt")));

        $this->PasswordResetHash = $hash;
        $this->PasswordResetDate = "now";
        $this->save();

        return $hash;
    }
public function generatePasswordResetHash ( ) { $ hashProvider = HashProvider :: getProvider ( ) ; $ hash = sha1 ( $ hashProvider -> createHash ( $ this -> UserID . uniqid ( ) , uniqid ( "salt" ) ) ) ; $ this -> PasswordResetHash = $ hash ; $ this -> PasswordResetDate = "now" ; $ this -> save ( ) ; return $ hash ; }
Creates and returns a reset password hash that can be emailed to the user to invite them to reset their password.
Creates and returns a reset password hash that can be emailed to the user to invite them to reset their password .