diff --git a/client/Localization.py b/client/Localization.py index c76ffd860176c55fe005ebaf7e176e1861741e54..d51ea3706848933a1bc2bbe398f548eefc4c3387 100644 --- a/client/Localization.py +++ b/client/Localization.py @@ -1,13 +1,13 @@ LOCALIZATION = { - "due_by": "Due by", - "done": "Done", - "done_at": "Done at", - "error_general": "An error occured", - "error_param_invalid": "ERROR: parameter is not numeric or less than 1", - "error_roadmap_not_existing": "ERROR: no roadmap with this ID existing", - "error_milestone_not_existing": "ERROR: no milestone with this ID existing", - "error_task_not_existing": "ERROR: no task with this ID existing", - "error_subtask_not_existing": "ERROR: no subtask with this ID existing", - "error_no_milestones": "ERROR: no milestones for this roadmap", - "unauthorized": "Invalid password" + 'due_by': 'Due by', + 'done': 'Done', + 'done_at': 'Done at', + 'error_general': 'An error occured', + 'error_param_invalid': 'ERROR: parameter is not numeric or less than 1', + 'error_roadmap_not_existing': 'ERROR: no roadmap with this ID existing', + 'error_milestone_not_existing': 'ERROR: no milestone with this ID existing', + 'error_task_not_existing': 'ERROR: no task with this ID existing', + 'error_subtask_not_existing': 'ERROR: no subtask with this ID existing', + 'error_no_milestones': 'ERROR: no milestones for this roadmap', + 'unauthorized': 'Invalid password' } \ No newline at end of file diff --git a/client/blueprints/Authentication.py b/client/blueprints/Authentication.py index 944297f9b3ac9326bb69f4d106a4dc9fb8153252..33329ab1bb3a2d1676a3f75d6cf9623334d14dc4 100644 --- a/client/blueprints/Authentication.py +++ b/client/blueprints/Authentication.py @@ -25,11 +25,11 @@ def construct_blueprint(urlBuilder): return render_template('login.html', message=LOCALIZATION['unauthorized']) if response.status_code == 200: - token = response.json()["access_token"] + token = response.json()['access_token'] session['session_token'] = token return redirect(url_for('admin_roadmaps.overview')) - return render_template('error.html', message=response.json()["msg"]) + return render_template('error.html', message=response.json()['msg']) @authentication.route('/admin/logout') def logout():