New login page

Exposes all available login providers
This commit is contained in:
2017-07-27 21:23:39 +02:00
parent c827dc4ed2
commit 9b9e0488d3
2 changed files with 18 additions and 9 deletions

View File

@@ -57,16 +57,8 @@ def oauth_callback(provider):
@blueprint.route('/login')
def login():
check_oauth_provider(current_app.oauth_blender_id)
session['next_after_login'] = request.args.get('next') or request.referrer
callback = url_for(
'users.blender_id_authorized',
_external=True,
_scheme=current_app.config['SCHEME']
)
return current_app.oauth_blender_id.authorize(callback=callback)
return render_template('login.html')
@blueprint.route('/oauth/blender-id/authorized')