mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 17:10:43 +03:00
Fix encoding error for consent form on python3
The form was rendering this as "b'01234....'". -- richvdh
This commit is contained in:
parent
14059e2300
commit
1f8a82077e
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ class ConsentResource(Resource):
|
|||
try:
|
||||
self._render_template(
|
||||
request, "%s.html" % (version,),
|
||||
user=username, userhmac=userhmac, version=version,
|
||||
user=username,
|
||||
userhmac=userhmac.decode('ascii'),
|
||||
version=version,
|
||||
has_consented=has_consented, public_version=public_version,
|
||||
)
|
||||
except TemplateNotFound:
|
||||
|
|
Loading…
Reference in a new issue