Skip to content

Commit

Permalink
Remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Encotric committed Jan 24, 2025
1 parent a61320e commit 7667c59
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/admin/mailu/sso/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ def login():
flask.current_app.logger.info(f'Login succeeded for {username} from {client_ip}.')
return response

if 'url' in flask.request.args and not 'homepage' in flask.request.url:
fields.append(form.submitAdmin)
else:
form.submitAdmin.label.text = form.submitAdmin.label.text + ' Admin'
form.submitWebmail.label.text = form.submitWebmail.label.text + ' Webmail'
if str(app.config["WEBMAIL"]).upper() != "NONE":
fields.append(form.submitWebmail)
if str(app.config["ADMIN"]).upper() != "FALSE":
fields.append(form.submitAdmin)
fields = [fields]

if form.validate_on_submit():
if destination := _has_usable_redirect():
pass
Expand Down

0 comments on commit 7667c59

Please sign in to comment.