Moved pending username to new global state
Some checks failed
Build Crate / build (push) Failing after 1m45s

This commit is contained in:
2024-08-30 03:38:02 -04:00
parent 8be43c95d4
commit 659037ec00
4 changed files with 14 additions and 12 deletions

View File

@@ -21,6 +21,7 @@ pub struct AppState {
#[rx(alias = "AuthDataRx")]
pub struct AuthData {
pub state: LoginState,
pub pending_username: String,
pub username: Option<String>,
pub remember_me: Option<bool>,
pub auth_info: Option<WebAuthInfo>,
@@ -89,6 +90,7 @@ pub async fn get_build_state() -> AppState {
AppState {
auth: AuthData {
state: LoginState::Unknown,
pending_username: String::new(),
username: None,
remember_me: None,
auth_info: None,