revoked access to website for coaches, added web-specific tokens
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user