we successfully compiled and wen from auth state to login state and auth state
This commit is contained in:
@@ -23,11 +23,11 @@ pub struct AuthState {
|
||||
/// Represents the state of the Login form UI
|
||||
#[derive(Default)]
|
||||
pub struct LoginState {
|
||||
pub username: String, // Input field for username/email
|
||||
pub password: String, // Input field for password
|
||||
pub error_message: Option<String>, // Error message specific to login attempt
|
||||
pub current_field: usize, // 0 for username, 1 for password
|
||||
pub current_cursor_pos: usize, // Cursor position within current field
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
pub error_message: Option<String>,
|
||||
pub current_field: usize,
|
||||
pub current_cursor_pos: usize,
|
||||
pub has_unsaved_changes: bool,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user