No need to keep authentication token in DB

This commit is contained in:
Matt Wright
2012-08-14 16:21:31 -04:00
parent 6f7d5378e7
commit 68b0410d1b
5 changed files with 9 additions and 25 deletions
-2
View File
@@ -183,7 +183,6 @@ def create_sqlalchemy_app(auth_config=None, register_blueprint=True):
login_count = db.Column(db.Integer)
active = db.Column(db.Boolean())
confirmed_at = db.Column(db.DateTime())
authentication_token = db.Column(db.String(255))
roles = db.relationship('Role', secondary=roles_users,
backref=db.backref('users', lazy='dynamic'))
@@ -227,7 +226,6 @@ def create_mongoengine_app(auth_config=None):
login_count = db.IntField()
active = db.BooleanField(default=True)
confirmed_at = db.DateTimeField()
authentication_token = db.StringField(max_length=255)
roles = db.ListField(db.ReferenceField(Role), default=[])
app.security = Security(app, MongoEngineUserDatastore(db, User, Role))