hot fix of external login of web

This commit is contained in:
leebaok 2016-04-01 16:56:05 +08:00
parent 7895d7a60f
commit 1936fb6ce4
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@
Facebook</a>
<a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i> Sign in using
Google+</a-->
{{ link }}
<a href="{{ url }}">{{ link }}</a>
</div>
</div>

View File

@ -40,10 +40,12 @@ class loginView(normalView):
#refreshInfo()
return redirect(request.args.get('next',None) or '/dashboard/')
if (env.getenv('EXTERNAL_LOGIN') == 'True'):
url = external_generate.external_login_url
link = external_generate.external_login_link
else:
link = ''
return render_template(self.template_path, link = link)
url = ''
return render_template(self.template_path, link = link, url = url)
@classmethod
def post(self):