Skip to content

Commit 39ffce2

Browse files
committed
login api에서 모델 기반 로그인처리를 하도록 수정
1 parent f1bb250 commit 39ffce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def login_api(request):
5656
password=request.data["password"]
5757
)
5858

59-
login(request, user)
59+
login(request, user, backend="django.contrib.auth.backends.ModelBackend")
6060

6161
response_data = {
6262
"msg": "ok"

0 commit comments

Comments
 (0)