diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 11:30:18 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 12:03:32 -0800 |
commit | fc9edfb1b65260f41f204d11bf130ceb35cb84e0 (patch) | |
tree | 3620d3c2c5b40e4b6a9c5cac7bb63f7a284eedc5 /python/fatcat_web/routes.py | |
parent | 901e4f4c23398e19e2595c374f2fa45e4773e992 (diff) | |
download | fatcat-fc9edfb1b65260f41f204d11bf130ceb35cb84e0.tar.gz fatcat-fc9edfb1b65260f41f204d11bf130ceb35cb84e0.zip |
web: reduce flash() usage; have logins redirect
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r-- | python/fatcat_web/routes.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 02b5258a..eda947cd 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -3,7 +3,7 @@ import os import json import citeproc_styles from flask import render_template, make_response, send_from_directory, \ - request, url_for, abort, redirect, jsonify, session, flash, Response + request, url_for, abort, redirect, jsonify, session, Response from flask_login import login_required from flask_wtf.csrf import CSRFError @@ -986,7 +986,7 @@ def health_json(): def login(): # show the user a list of login options if not priv_api: - flash("This web interface not configured with credentials to actually allow login (other than via token)") + app.log.warn("This web interface not configured with credentials to actually allow login (other than via token)") return render_template('auth_login.html') @app.route('/auth/ia/login', methods=['GET', 'POST']) @@ -1026,7 +1026,6 @@ def change_username(): # update our session session['editor'] = editor.to_dict() load_user(editor.editor_id) - flash("Username updated successfully") return redirect('/auth/account') @app.route('/auth/create_token', methods=['POST']) |