Fix python3 qrcode and some bugs

This commit is contained in:
Chiaki
2017-05-01 15:20:13 +08:00
parent 043f8c8b26
commit d11f8f9bff
3 changed files with 11 additions and 3 deletions

View File

@@ -52,6 +52,12 @@ class UserLoginAPI(APIView):
return self.success({})
class UserLogoutAPI(APIView):
def get(self, request):
auth.logout(request)
return self.success({})
class UserRegisterAPI(APIView):
@validate_serializer(UserRegisterSerializer)
def post(self, request):