Skip to content

Commit 6e766f3

Browse files
committed
fix:로그인 수정
1 parent acd9aa3 commit 6e766f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

config/settings.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,15 @@ def _split_env_list(key):
205205
#로그인 관련 셋팅
206206
LOGIN_REDIRECT_URL = '/'
207207
LOGOUT_REDIRECT_URL = '/'
208-
SOCIALACCOUNT_AUTO_SIGNUP = True
209-
SOCIALACCOUNT_LOGIN_ON_GET = True
210-
SOCIALACCOUNT_ADAPTER = 'apps.users.adapter.MySocialAccountAdapter'
208+
211209

212210
# 이메일 로그인 관련 설정
213211
ACCOUNT_LOGIN_METHODS = {"email"}
214-
ACCOUNT_SIGNUP_FIELDS = ["email*", "password1*", "password2*"]
212+
ACCOUNT_SIGNUP_FIELDS = ["username*", "email*", "password1*", "password2*"]
215213
ACCOUNT_UNIQUE_EMAIL = True #이메일 중복 허용 불가
214+
SOCIALACCOUNT_AUTO_SIGNUP = True
215+
SOCIALACCOUNT_LOGIN_ON_GET = True
216+
SOCIALACCOUNT_ADAPTER = 'apps.users.adapter.MySocialAccountAdapter'
216217

217218
AUTHENTICATION_BACKENDS = (
218219
#추가 장고에서 사용자의 이름을 기준으로 로그인하도록 설정

0 commit comments

Comments
 (0)