mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-21 12:30:10 +08:00
Initial idea for specifying a user account mixin for user model
This commit is contained in:
@@ -48,7 +48,7 @@ class SQLAlchemyUserDatastore(UserDatastore):
|
||||
self.name = name
|
||||
self.description = description
|
||||
|
||||
class User(db.Model, UserMixin):
|
||||
class User(db.Model, UserMixin, self.user_account_mixin):
|
||||
"""SQLAlchemy User model"""
|
||||
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
|
||||
Reference in New Issue
Block a user