Skip to content
Snippets Groups Projects
Commit ed161366 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

client: coding style

parent 79b2e722
No related branches found
No related tags found
No related merge requests found
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
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment