noch mehr UI für den Dispatcher
This commit is contained in:
1 parent
4f87a19ba2
commit
7b8d2ec396
12 files changed
+1170
-70
No files matched your search
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Authentifizierungs-Views
|
||||
"""
|
||||
from flask import Blueprint, render_template, request, redirect, url_for, session, flash, g
|
||||
from flask import Blueprint, render_template, request, redirect, url_for, session, flash, g, current_app
|
||||
from cmbnet.db import get_db
|
||||
from cmbnet.auth import verify_password
|
||||
|
||||
@@ -17,7 +17,7 @@ def load_tenant():
|
||||
tenant = db.execute('SELECT * FROM tenants WHERE code = ?', (tenant_code,)).fetchone()
|
||||
if not tenant:
|
||||
flash('Ungültiger Mandant', 'error')
|
||||
return redirect(url_for('auth.login_select'))
|
||||
return redirect(url_for('auth.login_select', tenant=current_app.config['DEFAULT_TENANT']))
|
||||
g.tenant_id = tenant['id']
|
||||
g.tenant_code = tenant['code']
|
||||
|
||||
|
||||
Reference in new issue
Block a user