Merge branch 'thubrecht/redirect' into 'master'

get_next_url renvoie une str

Closes #15

See merge request klub-dev-ens/authens!29
This commit is contained in:
Martin Pepin 2021-01-30 23:43:48 +01:00
commit c2bacdd86d

View file

@ -32,7 +32,7 @@ class NextPageMixin:
del request.session["CASNEXT"] del request.session["CASNEXT"]
if next_url is None: if next_url is None:
next_url = settings.LOGIN_REDIRECT_URL next_url = settings.LOGIN_REDIRECT_URL
return next_url return str(next_url)
class LoginSwitchView(NextPageMixin, TemplateView): class LoginSwitchView(NextPageMixin, TemplateView):