UMS Email Password Reset 2
# app/models.py # ... class User(UserMixin, db.Model): # ... def change_password(self, new_password): self.password_hash = generate_password_hash(new_password)