mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
chg: [create user] new account qr code
This commit is contained in:
parent
7a67e3043f
commit
0b56001c31
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ def create_user_post():
|
||||||
edit = False
|
edit = False
|
||||||
ail_users.api_create_user(admin_id, request.access_route[0], request.user_agent, email, password, org_uuid, role, enable_2_fa)
|
ail_users.api_create_user(admin_id, request.access_route[0], request.user_agent, email, password, org_uuid, role, enable_2_fa)
|
||||||
new_user = {'email': email, 'password': str_password, 'org': org_uuid, 'otp': enable_2_fa, 'edited': edit}
|
new_user = {'email': email, 'password': str_password, 'org': org_uuid, 'otp': enable_2_fa, 'edited': edit}
|
||||||
qr_code = ail_users.create_qr_code(password)
|
qr_code = ail_users.create_qr_code(f'{email} - {password}')
|
||||||
return render_template("create_user.html", new_user=new_user, meta={}, qr_code=qr_code,
|
return render_template("create_user.html", new_user=new_user, meta={}, qr_code=qr_code,
|
||||||
all_roles=all_roles, acl_admin=True)
|
all_roles=all_roles, acl_admin=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue