diff --git a/system/pages/polls.php b/system/pages/polls.php index c285aa0e..1431506d 100644 --- a/system/pages/polls.php +++ b/system/pages/polls.php @@ -98,8 +98,8 @@ function getColorByPercent($percent) $showed=true; } - echo 'You are not logged in. Log in to vote in polls.

'; if(!logged()) { + echo 'You are not logged in. Log in to vote in polls.

'; return; } diff --git a/system/templates/guilds.list.html.twig b/system/templates/guilds.list.html.twig index 80f170a0..7a4a7c86 100644 --- a/system/templates/guilds.list.html.twig +++ b/system/templates/guilds.list.html.twig @@ -114,7 +114,7 @@ {% else %} Before you can create a guild you must login.
-
+ {{ csrf() }} {% include('buttons.login.html.twig') %}
diff --git a/system/templates/guilds.view.html.twig b/system/templates/guilds.view.html.twig index 695d7464..a25d9570 100644 --- a/system/templates/guilds.view.html.twig +++ b/system/templates/guilds.view.html.twig @@ -215,7 +215,7 @@ {% if not logged %} -
+ {{ csrf() }} {{ include('buttons.login.html.twig') }}