Flash message for new sessions

This commit is contained in:
swagg boi 2025-02-11 19:42:34 -05:00
parent 78fb43a6ba
commit 60e4f9ffcc

View File

@ -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');