switch between login or form in the save request
This commit is contained in:
@@ -3,19 +3,16 @@
|
||||
use crate::state::pages::auth::AuthState;
|
||||
use crate::services::grpc_client::GrpcClient;
|
||||
|
||||
/// Shared logic for login operations
|
||||
pub async fn save(
|
||||
auth_state: &mut AuthState,
|
||||
grpc_client: &mut GrpcClient,
|
||||
) -> Result<String, Box<dyn std::error::Error>> {
|
||||
// Implement your login-specific save logic here
|
||||
Ok("Login credentials saved".to_string())
|
||||
Ok("Login credentials saved - not implemented yet".to_string())
|
||||
}
|
||||
|
||||
/// Shared logic for login cancellation
|
||||
pub async fn cancel(
|
||||
auth_state: &mut AuthState,
|
||||
) -> String {
|
||||
auth_state.clear_fields();
|
||||
"Login cancelled".to_string()
|
||||
"Login credentials canceled - not implemented yet".to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user