Projet

Général

Profil

0001-misc-redirect-to-form-after-stronger-authentication-.patch

Frédéric Péters, 04 mai 2021 19:30

Télécharger (1,22 ko)

Voir les différences:

Subject: [PATCH] misc: redirect to form after stronger authentication login
 (#53751)

 wcs/forms/root.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
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
-