mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-30 16:40:04 +08:00
Try and fix an issue with python 2.5
This commit is contained in:
+8
-3
@@ -30,9 +30,14 @@ def create_users():
|
||||
('joe@lp.com', 'password', ['editor'], True),
|
||||
('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')
|
||||
current_app.security.datastore.create_user(**{
|
||||
'email': u[0],
|
||||
'password': u[1],
|
||||
'roles': u[2],
|
||||
'active': u[3],
|
||||
'authentication_token':
|
||||
'123abc'
|
||||
})
|
||||
|
||||
|
||||
def populate_data():
|
||||
|
||||
Reference in New Issue
Block a user