misc: redirect to form after stronger authentication login (#53751)
This commit is contained in:
parent
69d300eb2a
commit
675d37b8ab
|
@ -18,6 +18,7 @@ import copy
|
|||
import io
|
||||
import json
|
||||
import time
|
||||
import urllib.parse
|
||||
|
||||
try:
|
||||
import qrcode
|
||||
|
@ -785,8 +786,9 @@ class FormPage(Directory, FormTemplateMixin):
|
|||
r += htmltext('</div>')
|
||||
root_url = get_publisher().get_root_url()
|
||||
for auth_context in self.formdef.required_authentication_contexts:
|
||||
r += htmltext('<p><a class="button" href="%slogin/?forceAuthn=true">%s</a></p>') % (
|
||||
r += htmltext('<p><a class="button" href="%slogin/?forceAuthn=true&next=%s">%s</a></p>') % (
|
||||
root_url,
|
||||
urllib.parse.quote(get_request().get_path_query()),
|
||||
_('Login with %s') % auth_contexts[auth_context],
|
||||
)
|
||||
return r.getvalue()
|
||||
|
|
Loading…
Reference in New Issue