From 3491af7eac2c53f88bc201e2cfe3de63676d1f19 Mon Sep 17 00:00:00 2001 From: stuzl Date: Mon, 29 Feb 2016 11:39:27 +0000 Subject: [PATCH] update input param in create_token() when linking this needs updating from u to user because there is no longer u at this point --- examples/server/python/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/server/python/app.py b/examples/server/python/app.py index e167d4b6..7238948e 100644 --- a/examples/server/python/app.py +++ b/examples/server/python/app.py @@ -186,7 +186,7 @@ def facebook(): user.facebook = profile['id'] user.display_name = user.display_name or profile['name'] db.session.commit() - token = create_token(u) + token = create_token(user) return jsonify(token=token) # Step 4. Create a new account or return an existing one. @@ -241,7 +241,7 @@ def github(): user.github = profile['id'] user.display_name = display_name or profile['name'] db.session.commit() - token = create_token(u) + token = create_token(user) return jsonify(token=token) # Step 4. Create a new account or return an existing one. @@ -296,7 +296,7 @@ def google(): user.google = profile['sub'] user.display_name = user.display_name or profile['name'] db.session.commit() - token = create_token(u) + token = create_token(user) return jsonify(token=token) # Step 4. Create a new account or return an existing one. @@ -352,7 +352,7 @@ def linkedin(): user.linkedin = profile['id'] user.display_name = user.display_name or (profile['firstName'] + ' ' + profile['lastName']) db.session.commit() - token = create_token(u) + token = create_token(user) return jsonify(token=token) # Step 4. Create a new account or return an existing one. @@ -442,7 +442,7 @@ def bitbucket(): user.bitbucket = profile['uuid'] user.display_name = user.display_name or profile['display_name'] db.session.commit() - token = create_token(u) + token = create_token(user) return jsonify(token=token) # Step 4. Create a new account or return an existing one.