'Overrides Web2Py\'s email_reset_password() to modify the message
structure
@param user: the auth_user record (Row)'

def email_reset_password(self, user):

    mailer = self.settings.mailer
    if (not mailer):
        return False
    import time
    reset_password_key = ((str(int(time.time())) + '-') + web2py_uuid())
    reset_password_url = ('%s/default/user/reset_password?key=%s' % (current.response.s3.base_url, reset_password_key))
    message = (self.messages.reset_password % dict(url=reset_password_url))
    if mailer.send(to=user.email, subject=self.messages.reset_password_subject, message=message):
        user.update_record(reset_password_key=reset_password_key)
        return True
    return False
