fix an external login bug.

This commit is contained in:
zhongyehong 2016-12-04 17:52:50 +08:00
parent 0e4b206d29
commit 01a06875bf
1 changed files with 8 additions and 0 deletions

View File

@ -140,3 +140,11 @@ class external_login_callbackView(normalView):
class external_loginView(normalView):
if (env.getenv('EXTERNAL_LOGIN') == 'True'):
template_path = external_generate.html_path
@classmethod
def post(self):
return render_template(self.template_path)
@classmethod
def get(self):
return self.post()