diff --git a/frontends/etiquette_flask/etiquette_flask/endpoints/user_endpoints.py b/frontends/etiquette_flask/etiquette_flask/endpoints/user_endpoints.py index 17d432e..5a362d7 100644 --- a/frontends/etiquette_flask/etiquette_flask/endpoints/user_endpoints.py +++ b/frontends/etiquette_flask/etiquette_flask/endpoints/user_endpoints.py @@ -83,11 +83,11 @@ def post_login(): session_manager.add(session) return jsonify.make_json_response({}) -@site.route('/logout', methods=['GET', 'POST']) +@site.route('/logout', methods=['POST']) @session_manager.give_token def logout(): session_manager.remove(request) - response = flask.Response('redirect', status=302, headers={'Location': common.back_url()}) + response = jsonify.make_json_response({}) return response # User registration ################################################################################ diff --git a/frontends/etiquette_flask/static/css/common.css b/frontends/etiquette_flask/static/css/common.css index 1dda1e1..2b72a11 100644 --- a/frontends/etiquette_flask/static/css/common.css +++ b/frontends/etiquette_flask/static/css/common.css @@ -37,6 +37,11 @@ pre margin-bottom: 4px; } +#header button +{ + border: 0; + cursor: pointer; +} .header_element { display: flex; @@ -49,6 +54,7 @@ pre { background-color: #ffffd4; } + .editor_input { width: 100%; diff --git a/frontends/etiquette_flask/templates/header.html b/frontends/etiquette_flask/templates/header.html index f13286f..473617d 100644 --- a/frontends/etiquette_flask/templates/header.html +++ b/frontends/etiquette_flask/templates/header.html @@ -5,7 +5,7 @@ Tags {% if session.user %} {{session.user.display_name}} - Logout + {% else %} Log in {% endif %} diff --git a/frontends/etiquette_flask/templates/user.html b/frontends/etiquette_flask/templates/user.html index 3c7053f..b368df2 100644 --- a/frontends/etiquette_flask/templates/user.html +++ b/frontends/etiquette_flask/templates/user.html @@ -6,6 +6,7 @@ +