mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Update SQLAlchemy, Flask, Flask-SQLAlchemy, and other packages to current versions. #5901
- Update Flask, Flask-SQLAlchemy, Flask-Babel, Flask-Security-Too, Flask-SocketIO, pytz, psutil, SQLAlchemy, bcrypt, cryptography, eventlet, Authlib, requests python packages - Remove pinned dnspython, Werkzeug packages from requirements.txt
This commit is contained in:
@@ -83,7 +83,7 @@ def login():
|
||||
Entry point for all the authentication sources.
|
||||
The user input will be validated and authenticated.
|
||||
"""
|
||||
form = _security.login_form()
|
||||
form = _security.forms.get('login_form').cls(request.form)
|
||||
if OAUTH2 in config.AUTHENTICATION_SOURCES \
|
||||
and 'oauth2_button' in request.form:
|
||||
# Sending empty form as oauth2 does not require form attribute
|
||||
@@ -173,7 +173,7 @@ def login():
|
||||
if 'auth_obj' in session:
|
||||
session.pop('auth_obj')
|
||||
flash(msg, 'danger')
|
||||
form_class = _security.login_form
|
||||
form_class = _security.forms.get('login_form').cls
|
||||
form = form_class()
|
||||
|
||||
return _security.render_template(
|
||||
|
||||
@@ -177,7 +177,7 @@ class KerberosAuthentication(BaseAuthentication):
|
||||
negotiate = False
|
||||
headers = Headers()
|
||||
authorization = request.headers.get("Authorization", None)
|
||||
form_class = _security.login_form
|
||||
form_class = _security.forms.get('login_form').cls
|
||||
req_json = request.get_json(silent=True)
|
||||
|
||||
if req_json:
|
||||
|
||||
Reference in New Issue
Block a user