def gen_reset_pass_token(self, expiration):
        """
        Generates a token for password reset.
        expiration in seconds.
        Author: Ahmed H. Ismail