Skip to content

Commit

Permalink
update deprecated template include
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Jan 3, 2024
1 parent 245a2a3 commit 64e1902
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 4 additions & 5 deletions oxauth/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
def decrypt_cookie(cookie):
strategy = Strategy2(
signature_public_key=settings.SIGNATURE_PUBLIC_KEY,
signature_algorithm = settings.SIGNATURE_ALGORITHM,
encryption_private_key = settings.ENCRYPTION_PRIVATE_KEY,
encryption_method = 'A256GCM',
encryption_algorithm = 'dir'
signature_algorithm=settings.SIGNATURE_ALGORITHM,
encryption_private_key=settings.ENCRYPTION_PRIVATE_KEY,
encryption_method='A256GCM',
encryption_algorithm='dir'
)

payload = strategy.decrypt(cookie)
Expand Down Expand Up @@ -125,4 +125,3 @@ def retrieve_user_data(url=None):
return user_data
else:
return {}

8 changes: 5 additions & 3 deletions oxauth/templates/wagtailusers/users/edit.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "wagtailusers/users/edit.html" %}

{% block extra_fields %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_staff %}
{% endblock extra_fields %}
<li>
{% block extra_fields %}
{% include "wagtailadmin/shared/field.html" with field=form.is_staff %}
{% endblock extra_fields %}
</li>

0 comments on commit 64e1902

Please sign in to comment.