mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-12 12:00:37 +08:00
Changed token auth a bit, including the use of itsdangerous. Also added JSON authentication feature
This commit is contained in:
+1
-2
@@ -32,8 +32,7 @@ def create_users():
|
||||
('jill@lp.com', 'password', ['author'], True),
|
||||
('tiya@lp.com', 'password', [], False)):
|
||||
current_app.security.datastore.create_user(
|
||||
email=u[0], password=u[1], roles=u[2], active=u[3],
|
||||
authentication_token='123abc')
|
||||
email=u[0], password=u[1], roles=u[2], active=u[3])
|
||||
|
||||
|
||||
def populate_data():
|
||||
|
||||
Reference in New Issue
Block a user