Moved pending username to new global state
Some checks failed
Build Crate / build (push) Failing after 1m45s
Some checks failed
Build Crate / build (push) Failing after 1m45s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user