summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-08 16:54:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-08 16:54:54 +0100
commitbf4ccb0eabe0f4258bc174a83dfba318d0212af1 (patch)
tree1e655374478df55eea4a1a21c6af4a2e69331ec7 /templates
parentfd608391164ddc9e55e2f383620d395b43ae99b7 (diff)
Logout: Use a POST form as it's a stateful action
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html.ep8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep
index f85ba91..23d3259 100644
--- a/templates/login.html.ep
+++ b/templates/login.html.ep
@@ -7,7 +7,13 @@
<p>
Du bist bereits angemeldet. Falls du mehrere Accounts hast
und auf einen anderen wechseln möchtest, musst du dich
- vorher <a href="/logout">abmelden</a>.
+ vorher
+ %= form_for 'logout' => begin
+ %= csrf_field
+ <button class="btn waves-effect waves-light" type="submit" name="action" value="logout">
+ Abmelden
+ </button>
+ %= end
</p>
</div>
</div>