Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

随意填写 #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

随意填写 #68

wants to merge 1 commit into from

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