@staticmethod
def send_reset_password_msg(user):
    token = user.reset_password_token()
    msg = Message('Reset password for Dwellingly', sender=Email.NO_REPLY, recipients=[user.email])
    msg.body = render_template('emails/reset_msg.txt', user=user, token=token)
    msg.html = render_template('emails/reset_msg.html', user=user, token=token)
    current_app.mail.send(msg)
@staticmethod
def send_reset_password_msg(user):
    token = user.reset_password_token()
    msg = Message('Reset password for Dwellingly', sender=Email.NO_REPLY, recipients=[user.email])
    msg.body = render_template('emails/reset_msg.txt', user=user, token=token)
    msg.html = render_template('emails/reset_msg.html', user=user, token=token)
    current_app.mail.send(msg)