login and register are sending data to the backend successfuly
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user