Flash message for new sessions
This commit is contained in:
parent
78fb43a6ba
commit
60e4f9ffcc
@ -138,6 +138,7 @@ sub startup($self) {
|
|||||||
# Shortcut to new session cookie/identity
|
# Shortcut to new session cookie/identity
|
||||||
$r->get('/new', sub ($c) {
|
$r->get('/new', sub ($c) {
|
||||||
$c->session(expires => 1);
|
$c->session(expires => 1);
|
||||||
|
$c->flash(info => 'Session has been reset; have a cookie. 🍪');
|
||||||
|
|
||||||
$c->redirect_to('threads_list');
|
$c->redirect_to('threads_list');
|
||||||
})->name('new_session');
|
})->name('new_session');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user