added toJSON func
This commit is contained in:
@@ -117,7 +117,8 @@ def oidc():
|
||||
|
||||
user = create_or_retrieve_user_from_userinfo(flask.session['userinfo'])
|
||||
|
||||
return jsonify(user.to_dict())
|
||||
#return jsonify(user.to_dict())
|
||||
return user.toJSON()
|
||||
if user is None:
|
||||
return "Could not authenticate: could not find or create user.", 401
|
||||
if current_app.config.get("AUTH_RETURN_EXTERNAL_JWT", False):
|
||||
|
||||
Reference in New Issue
Block a user