hot fix of external login of web
This commit is contained in:
parent
7895d7a60f
commit
1936fb6ce4
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue