we successfully compiled and wen from auth state to login state and auth state

This commit is contained in:
filipriec
2025-04-13 17:47:00 +02:00
parent 1dd5f685a6
commit 3d0a9f2082
14 changed files with 120 additions and 114 deletions

View File

@@ -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,
}