Use https in redirect_url (except in dev)
This commit is contained in:
parent
fcd9a3bfbe
commit
507f429f1e
1 changed files with 2 additions and 0 deletions
|
@ -174,6 +174,8 @@ ACCOUNT_UNIQUE_EMAIL = True
|
||||||
ACCOUNT_LOGIN_METHODS = {"email"}
|
ACCOUNT_LOGIN_METHODS = {"email"}
|
||||||
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
|
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
|
||||||
ACCOUNT_SIGNUP_FORM_CLASS = "servala.frontend.forms.auth.ServalaSignupForm"
|
ACCOUNT_SIGNUP_FORM_CLASS = "servala.frontend.forms.auth.ServalaSignupForm"
|
||||||
|
if ALLOWED_HOSTS or not DEBUG:
|
||||||
|
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = [
|
AUTHENTICATION_BACKENDS = [
|
||||||
"rules.permissions.ObjectPermissionBackend",
|
"rules.permissions.ObjectPermissionBackend",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue