Skip to content

Conversation

cwt678999
Copy link

No description provided.

#登出
class adminLogout(APIView):
#登出
def post(self):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该判断是否登入,如果没有登入自然没有登出

raise ValidateError(self.input)

#验证用户名和密码登陆(django——superuser)
def post(self):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有验证用户名和密码,只有无差别的认证

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant