96310924 by 周伟奇

admin test10

1 parent 9142b8ff
...@@ -97,8 +97,8 @@ class IWAUrlView(IWABaseView, GenericView): ...@@ -97,8 +97,8 @@ class IWAUrlView(IWABaseView, GenericView):
97 class AdminLoginView(IWABaseView, GenericView): 97 class AdminLoginView(IWABaseView, GenericView):
98 98
99 def get(self, request, *args, **kwargs): 99 def get(self, request, *args, **kwargs):
100 code = request.data.get('code', '') 100 code = request.GET.get('code', '')
101 is_admin = request.data.get('state', '') == 'admin' 101 is_admin = request.GET.get('state', '') == 'admin'
102 # q_number = self.get_q_number(conf.IWA_URL, code, conf.IWA_REDIRECT_URI, client_id_base64) 102 # q_number = self.get_q_number(conf.IWA_URL, code, conf.IWA_REDIRECT_URI, client_id_base64)
103 self.running_log.info('code={0}, is_admin={1}'.format(code, is_admin)) 103 self.running_log.info('code={0}, is_admin={1}'.format(code, is_admin))
104 104
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!