login and register are sending data to the backend successfuly

This commit is contained in:
filipriec
2025-08-29 14:46:43 +02:00
parent 833b918c5b
commit 75da9c0f4b
4 changed files with 18 additions and 2 deletions

View File

@@ -139,6 +139,13 @@ impl fmt::Debug for LoginFormState {
}
impl LoginFormState {
/// Sync the editor's data provider back into our state
pub fn sync_from_editor(&mut self) {
// FormEditor holds the authoritative data
let dp = self.editor.data_provider();
self.state = dp.clone(); // LoginState implements Clone
}
/// Create a new LoginFormState with default LoginState and FormEditor
pub fn new() -> Self {
let state = LoginState::default();