revoked access to website for coaches, added web-specific tokens

This commit is contained in:
2026-05-26 15:49:19 +02:00
parent 7671c9f329
commit 2181d1731e
36 changed files with 129 additions and 41 deletions

View File

@ -233,6 +233,11 @@ async function login(evt) {
return;
}
if (data.role === 'coach') {
$('#loginMsg').textContent = 'Coach accounts can only sign in through the mobile app.';
return;
}
if (data.must_change_password) {
_pendingUser = data.user;
$('#loginCard').classList.add('hidden');