Remember user name
Change-Id: Ibccc786cd513510b08582e89605e74c02d8fceab
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 1348219..2db406a 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -9,6 +9,7 @@
# Minor version - may be patched from package.json
our $VERSION = '0.21';
+# TODO: Use CSRF!!!
# TODO: The FAQ-Page has a contact form for new questions
# TODO: Embed query serialization
# TODO: Embed collection statistics
diff --git a/lib/Kalamar/Controller/User.pm b/lib/Kalamar/Controller/User.pm
index de47390..b80aec0 100644
--- a/lib/Kalamar/Controller/User.pm
+++ b/lib/Kalamar/Controller/User.pm
@@ -22,6 +22,9 @@
$c->notify(success => 'Login successful!');
};
+ # Set flash for redirect
+ $c->flash(handle_or_email => $v->param('handle_or_email'));
+
# Redirect to slash
return $c->redirect_to('/');
};