0001-misc-redirect-to-form-after-stronger-authentication-.patch
wcs/forms/root.py | ||
---|---|---|
18 | 18 |
import io |
19 | 19 |
import json |
20 | 20 |
import time |
21 |
import urllib.parse |
|
21 | 22 | |
22 | 23 |
try: |
23 | 24 |
import qrcode |
... | ... | |
785 | 786 |
r += htmltext('</div>') |
786 | 787 |
root_url = get_publisher().get_root_url() |
787 | 788 |
for auth_context in self.formdef.required_authentication_contexts: |
788 |
r += htmltext('<p><a class="button" href="%slogin/?forceAuthn=true">%s</a></p>') % ( |
|
789 |
r += htmltext('<p><a class="button" href="%slogin/?forceAuthn=true&next=%s">%s</a></p>') % (
|
|
789 | 790 |
root_url, |
791 |
urllib.parse.quote(get_request().get_path_query()), |
|
790 | 792 |
_('Login with %s') % auth_contexts[auth_context], |
791 | 793 |
) |
792 | 794 |
return r.getvalue() |
793 |
- |