Skip to content

Commit

Permalink
v1.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
katoretb committed Aug 6, 2024
1 parent bbfb2e5 commit eb8774f
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 eb8774f

Please sign in to comment.