Skip to content

Commit 05f644f

Browse files
committed
added print statements
1 parent f9bf24f commit 05f644f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/backend/api/v0/oauth2_routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ def login_with_iot_callback():
224224
data2 = ImmutableMultiDict([('grant_type', 'password'), ('username', session_token),
225225
('scope', 'profile'), ('password', 'dummy')])
226226
request.form = data2
227+
print("request data created.")
228+
227229

228230
# Get personal data
229231
name = ""
@@ -246,9 +248,11 @@ def login_with_iot_callback():
246248
area = districts[profile_data['value']]
247249

248250
User.update_user(session_token, name, city, age, area)
251+
print("User updated")
249252
User.user_add_community(session_token, bcn_community_obj.id)
250-
253+
print("User added to community")
251254
token = authorization.create_token_response(request)
255+
print("token created")
252256
return token
253257
else:
254258
response = jsonify(message="Invalid Token")

0 commit comments

Comments
 (0)