From 8c93f69081f0012e9a97ffc59adb7129bc1593ee Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 18:51:05 +0100 Subject: v4.0.5: login and registration as core commands --- src/client/view.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/view.rs') diff --git a/src/client/view.rs b/src/client/view.rs index 903403c..9443726 100644 --- a/src/client/view.rs +++ b/src/client/view.rs @@ -248,6 +248,8 @@ pub struct LobbyView { pub user: Option, pub balance: Option, pub games: Vec<(String, String)>, + /// Why the last login or registration attempt failed. + pub login_error: Option, } /// The play log, already parsed. @@ -270,6 +272,9 @@ pub enum View { /// Semantic input. Frontends turn keys and clicks into these. #[derive(Debug, Clone, PartialEq, Eq)] pub enum Command { + /// The credential is already hashed by the frontend. + Login { user: String, credential: String }, + Register { user: String, credential: String }, Play { game: String, bet: Option }, History { limit: u32 }, ShowLobby, -- cgit v1.2.3