GODT-2003: introduces 3 phases user state (SignedOut/Locked/Connected)

WIP: introduced UserState enum in GUI and implemented logic.
This commit is contained in:
Xavier Michelon
2022-11-15 17:24:54 +01:00
parent 49b3c18903
commit e087a7972e
27 changed files with 1516 additions and 1276 deletions

View File

@ -55,7 +55,7 @@ ApplicationWindow {
// considering that users are added one-by-one
var user = Backend.users.get(first)
if (!user.loggedIn) {
if (user.state === EUserState.SignedOut) {
return
}
@ -111,7 +111,7 @@ ApplicationWindow {
return 1
}
if (Backend.users.count === 1 && u.loggedIn === false) {
if ((Backend.users.count === 1) && (u.state === EUserState.SignedOut)) {
showSignIn(u.username)
return 0
}