登録時のステータスコードを修正

This commit is contained in:
suti7yk5032 2024-10-05 10:09:06 +09:00
parent 08a1178209
commit a0056ef2c4

View file

@ -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