upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / pgadmin4 / repos / community-x86_64 / flask-security-compat.patch
blob3f3aca88913e0d0c21d4ad64d9889c3b98cf670e
1 diff -aur pgadmin4-4.30/web/pgadmin/browser/__init__.py pgadmin4-4.30.old/web/pgadmin/browser/__init__.py
2 --- pgadmin4-4.30/web/pgadmin/browser/__init__.py 2021-10-03 19:00:39.757955280 +0200
3 +++ pgadmin4-4.30.old/web/pgadmin/browser/__init__.py 2021-10-03 18:59:22.220450894 +0200
4 @@ -30,7 +30,7 @@
5 from flask_security.signals import reset_password_instructions_sent
6 from flask_security.utils import config_value, do_flash, get_url, \
7 get_message, slash_url_suffix, login_user, send_mail, logout_user
8 -from flask_security.views import _security, view_commit, _ctx
9 +from flask_security.views import _security, _commit, _ctx
10 from werkzeug.datastructures import MultiDict
12 import config
13 @@ -1039,7 +1039,7 @@
14 has_error = True
16 if request.json is None and not has_error:
17 - after_this_request(view_commit)
18 + after_this_request(_commit)
19 do_flash(*get_message('PASSWORD_CHANGE'))
21 old_key = get_crypt_key()[1]
22 @@ -1205,7 +1205,7 @@
23 has_error = True
25 if not has_error:
26 - after_this_request(view_commit)
27 + after_this_request(_commit)
28 do_flash(*get_message('PASSWORD_RESET'))
29 login_user(user)
30 return redirect(get_url(_security.post_reset_view) or