Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
bisago
bisago-be
Commits
9431e9d1
Commit
9431e9d1
authored
Mar 20, 2021
by
Muhammad Rafif Elfazri
Browse files
Update settings.py to allow inactive user to authenticate
parent
13176b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
pplbackend/settings.py
View file @
9431e9d1
...
...
@@ -26,7 +26,7 @@ SECRET_KEY = os.getenv("SECRET_KEY", 'akua')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
FALSE
DEBUG
=
True
ALLOWED_HOSTS
=
[
'localhost'
,
'127.0.0.1'
,
'10.119.105.26'
,
'bisago.cs.ui.ac.id'
]
...
...
@@ -167,7 +167,8 @@ SITE_ID = 1
AUTHENTICATION_BACKENDS
=
[
# Default backend -- used to login by username in Django admin
"django.contrib.auth.backends.ModelBackend"
,
# This allow inactive user to authenticate
'django.contrib.auth.backends.AllowAllUsersModelBackend'
,
# `allauth` specific authentication methods, such as login by e-mail
"allauth.account.auth_backends.AuthenticationBackend"
,
]
...
...
@@ -222,10 +223,10 @@ SIMPLE_JWT = {
'REFRESH_TOKEN_LIFETIME'
:
timedelta
(
days
=
90
),
}
http_proxy
=
os
.
environ
.
get
(
'http_proxy'
,
''
)
http_proxy
=
os
.
environ
.
get
(
'http_proxy'
,
''
)
https_proxy
=
os
.
environ
.
get
(
'https_proxy'
,
''
)
PROXIES
=
{
"http"
:
http_proxy
,
"https"
:
https_proxy
}
PROXIES
=
{
"http"
:
http_proxy
,
"https"
:
https_proxy
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment