mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2025-12-08 11:39:33 +00:00
Hide email input on admin when disabled
This commit is contained in:
@@ -16,7 +16,9 @@ def page_not_found(e):
|
||||
def admin():
|
||||
# return app.send_static_file('admin.html')
|
||||
return render_template('admin.html',
|
||||
contactMessage='')
|
||||
contactMessage='',
|
||||
email_enabled=config.getboolean(
|
||||
'invite_emails', 'enabled'))
|
||||
|
||||
|
||||
@app.route('/<path:path>')
|
||||
@@ -27,7 +29,6 @@ def static_proxy(path):
|
||||
contactMessage=config['ui']['contact_message']), 404
|
||||
|
||||
|
||||
|
||||
@app.route('/invite/<path:path>')
|
||||
def inviteProxy(path):
|
||||
if checkInvite(path):
|
||||
@@ -48,8 +49,9 @@ def inviteProxy(path):
|
||||
helpMessage=config['ui']['help_message'],
|
||||
successMessage=config['ui']['success_message'],
|
||||
jfLink=config['jellyfin']['server'],
|
||||
validate=config.getboolean('password_validation',
|
||||
'enabled'),
|
||||
validate=config.getboolean(
|
||||
'password_validation',
|
||||
'enabled'),
|
||||
requirements=validator.getCriteria(),
|
||||
email=email)
|
||||
elif 'admin.html' not in path and 'admin.html' not in path:
|
||||
|
||||
Reference in New Issue
Block a user