lang %!s(int64=4) %!d(string=hai) anos
pai
achega
7dff6bd6ed
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      controller/index.py

+ 2 - 2
controller/index.py

@@ -87,8 +87,8 @@ class loginHandleView(TemplateView):
         logger.info(scope)
         logger.info(redirect_uri)
         logger.info(request_dict)
-        print(user)
-        print(pwd)
+        if client_id != 'azalexaclient' or response_type != 'code' or scope != 'profile':
+            return response.json(10, res={'msg': 'error'}, extra={'msg': 'message wrong'})
         auth_request_url = '{SERVER_PREFIX}/oalexa/auth'. \
             format(SERVER_PREFIX=SERVER_PREFIX)
         print(auth_request_url)