diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 12:00:50 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-11-15 12:00:50 +0100 |
| commit | 69488029a8eafc55d42ae7e65ba8ddeebcfb8454 (patch) | |
| tree | c0e90861d7f01a93908fa7ab428a0dab8da43d2a /static/index.js | |
| parent | e8ff326f0e5bd61fb0a8c22c48f296fcf0249830 (diff) | |
implement auto-login when session still active
Diffstat (limited to 'static/index.js')
| -rw-r--r-- | static/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
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(); +} |