Skip to content

Commit

Permalink
Merge pull request #39 from cu-devclub/testing
Browse files Browse the repository at this point in the history
v1.0.13
  • Loading branch information
katoretb authored Aug 6, 2024
2 parents ea41dc4 + eb8774f commit 265c376
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions api/src/route/api/glob/auth/callback_POST.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ def main():

# cred = request.json['credential']


print(cred)

if cred is not None:
try:
private_key = serialization.load_pem_private_key(config["PRIKEY"].encode('utf-8'), password=None)
Expand All @@ -75,14 +72,14 @@ def main():

if cred is not None:
DMS = decrypted_message.split("_")
print(decrypted_message)
print(DMS)

if len(DMS) != 3:
return jsonify({
'success': False,
'msg': 'Credentials is not valid.',
'data': {}
'data': {
"x": [decrypted_message, DMS, cred]
}
}), 200

id_info = {
Expand Down

0 comments on commit 265c376

Please sign in to comment.