mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 10:55:40 +00:00
Fix domain account setting
This commit is contained in:
parent
05d2a5e3d3
commit
5e6806cc0f
@ -745,14 +745,9 @@ def domain_change_account(domain_name):
|
|||||||
return redirect(url_for('error', code=404))
|
return redirect(url_for('error', code=404))
|
||||||
|
|
||||||
account_id = request.form.get('accountid')
|
account_id = request.form.get('accountid')
|
||||||
status = domain.assoc_account(account_id)
|
status = Domain(name=domain.name).assoc_account(account_id)
|
||||||
if status['status']:
|
if status['status']:
|
||||||
users = User.query.all()
|
return redirect(url_for('domain_management', domain_name=domain.name))
|
||||||
accounts = Account.query.all()
|
|
||||||
d = Domain(name=domain_name)
|
|
||||||
domain_user_ids = d.get_user()
|
|
||||||
account = d.get_account()
|
|
||||||
return render_template('domain_management.html', domain=domain, users=users, domain_user_ids=domain_user_ids, accounts=accounts, domain_account=account)
|
|
||||||
else:
|
else:
|
||||||
return redirect(url_for('error', code=500))
|
return redirect(url_for('error', code=500))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user