From 5970a5a350890340821a5418f3aa4607e05f49cb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 10 Mar 2019 19:32:45 +0100 Subject: redirect users after login to protected page --- templates/login.html.ep | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates') diff --git a/templates/login.html.ep b/templates/login.html.ep index fc8bbb8..4c5696d 100644 --- a/templates/login.html.ep +++ b/templates/login.html.ep @@ -76,6 +76,9 @@
%= form_for '/login' => (class => 'col s12', method => 'POST') => begin %= csrf_field + % if (stash('redirect_to')) { + %= hidden_field 'redirect_to' => $redirect_to + % }
account_circle -- cgit v1.2.3