From ad5a7de2925c2838dcd5f05d3f194e8a861d2634 Mon Sep 17 00:00:00 2001 From: Emilien GUILMINEAU Date: Fri, 29 Mar 2024 22:24:58 +0100 Subject: [PATCH] :art: Cleanup --- snappass/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snappass/main.py b/snappass/main.py index 0cdb8cf..1ae77a4 100644 --- a/snappass/main.py +++ b/snappass/main.py @@ -101,7 +101,7 @@ def parse_token(token): decryption_key = None return storage_key, decryption_key - + def as_validation_problem(request, problem_type, problem_title, invalid_params): base_url = set_base_url(request) @@ -247,12 +247,12 @@ def api_handle_password(): return jsonify(link=link, ttl=ttl) else: abort(500) - + @app.route('/api/v2/passwords/', methods=['POST']) def api_v2_set_password(): password = request.json.get('password') ttl = int(request.json.get('ttl', DEFAULT_API_TTL)) - + invalid_params = [] if not password: