Jun 28 Optimize code - fix auth.py error
This commit is contained in:
+2
-3
@@ -556,11 +556,10 @@ def impersonate_entry():
|
||||
logger.info('AUTH | impersonate_start | sa=%s tenant=%s', superadmin_id, tenant_id)
|
||||
|
||||
import os
|
||||
panel_url = f"https://admin.{os.environ.get('TENANT_BASE_DOMAIN', 'jqc.app')}"
|
||||
end_url = url_for('auth.impersonate_end')
|
||||
flash(
|
||||
f'Impersonating tenant #{tenant_id} as superadmin. '
|
||||
f'<a href="{url_for(\"auth.impersonate_end\")}" class="alert-link">'
|
||||
f'End impersonation</a>',
|
||||
f'<a href="{end_url}" class="alert-link">End impersonation</a>',
|
||||
'warning',
|
||||
)
|
||||
return redirect(url_for('dashboard.index'))
|
||||
|
||||
Reference in New Issue
Block a user