aboutsummaryrefslogtreecommitdiff
path: root/api/user/password.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/user/password.py')
-rw-r--r--api/user/password.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/api/user/password.py b/api/user/password.py
index 0c1cb70..ff52ba4 100644
--- a/api/user/password.py
+++ b/api/user/password.py
@@ -3,16 +3,17 @@ from db import cursor
password = Blueprint('password', __name__)
+
# this endpoint is unfinished
@password.route('/password')
def index():
- data = request.get_json()
+ data = request.get_json()
- if not data["password"] or \
- not data["newPassword"]:
- return "", 400
+ if not data["password"] or \
+ not data["newPassword"]:
+ return "", 400
- return {}, 200
+ return {}, 200
-dynamic_route = ["/user", password]
+dynamic_route = ["/user", password]