From 69488029a8eafc55d42ae7e65ba8ddeebcfb8454 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 15 Nov 2025 12:00:50 +0100 Subject: implement auto-login when session still active --- static/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'static/index.js') diff --git a/static/index.js b/static/index.js index a7211e2..e9ef859 100644 --- a/static/index.js +++ b/static/index.js @@ -102,4 +102,8 @@ document.body.append( month_select, ); -login.focus(); +if (await api.session.is_valid()) { + login.hide(); +} else { + login.focus(); +} -- cgit v1.2.3-70-g09d2