Use https in redirect_url (except in dev)

This commit is contained in:
Tobias Kunze 2025-03-24 11:38:39 +01:00
parent fcd9a3bfbe
commit 507f429f1e

View file

@ -174,6 +174,8 @@ ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_LOGIN_METHODS = {"email"}
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
ACCOUNT_SIGNUP_FORM_CLASS = "servala.frontend.forms.auth.ServalaSignupForm"
if ALLOWED_HOSTS or not DEBUG:
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
AUTHENTICATION_BACKENDS = [
"rules.permissions.ObjectPermissionBackend",