async registration working

This commit is contained in:
filipriec
2025-04-18 22:36:30 +02:00
parent 420ce71fb2
commit 8d1adccec6
3 changed files with 116 additions and 5 deletions

View File

@@ -8,8 +8,16 @@ use crate::state::{
};
use crate::ui::handlers::context::DialogPurpose;
use crate::state::app::buffer::{AppView, BufferState};
use common::proto::multieko2::auth::AuthResponse;
use anyhow::Result;
#[derive(Debug)]
pub enum RegisterResult {
Success(AuthResponse),
Failure(String),
ConnectionError(String),
}
/// Attempts to register the user using the provided details via gRPC.
/// Updates RegisterState and AppState on success or failure.
pub async fn save(