diff --git a/dislocker_auth.py b/dislocker_auth.py index 04a47e3..e329fef 100644 --- a/dislocker_auth.py +++ b/dislocker_auth.py @@ -371,9 +371,9 @@ def register(): return jsonify({'message': 'ok', 'pc_token': pc_token, 'master_password': master_password, 'master_password_hash': master_password_hash}), 200 elif register_result["result"] == 1: if register_result["about"] == "exist": - return jsonify({'message': 'exist'}), 401 + return jsonify({'message': 'exist'}), 400 else: - return jsonify({'message': 'damedesu'}), 401 + return jsonify({'message': 'damedesu'}), 500 else: return jsonify({'message': 'damedesu'}), 401