Upgrade allow adding image in ticket details page comment section
This commit is contained in:
@@ -63,6 +63,12 @@ def register():
|
||||
if current_user.is_authenticated:
|
||||
return redirect(url_for('tickets.dashboard'))
|
||||
|
||||
from app.models import SystemSetting
|
||||
if not SystemSetting.get_bool('registration_enabled', default=True):
|
||||
logger.info(f'[AUTH REGISTER BLOCKED] Registration is disabled. ip={request.remote_addr}')
|
||||
flash('Self-registration is currently disabled. Please contact your IT administrator.', 'warning')
|
||||
return redirect(url_for('auth.login'))
|
||||
|
||||
if request.method == 'POST':
|
||||
email = request.form.get('email', '').strip().lower()
|
||||
username = request.form.get('username', '').strip()
|
||||
|
||||
Reference in New Issue
Block a user