diff --git a/Cargo.lock b/Cargo.lock index 02fc7d5..a2750fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -962,7 +962,9 @@ dependencies = [ "dotenvy", "fluent-templates", "futures", + "jiff", "lazy_static", + "nucleo", "prost", "prost-types", "ratatui", @@ -3735,6 +3737,16 @@ dependencies = [ "serde_core", ] +[[package]] +name = "jiff-sqlx" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07f07e4e3efb45ce1507e32af3b1e8f31d33d5edbf041ffeda3180042c3abc58" +dependencies = [ + "jiff", + "sqlx", +] + [[package]] name = "jiff-static" version = "0.2.32" @@ -6233,6 +6245,7 @@ dependencies = [ "dotenvy", "futures", "jiff", + "jiff-sqlx", "jsonwebtoken", "lazy_static", "once_cell", diff --git a/client b/client index 9c8ae0b..7f147d8 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit 9c8ae0b6fa843155195f83d4e7026996e7925edd +Subproject commit 7f147d8630a837760399d0a44846eca89bfa82f5 diff --git a/common/proto/auth.proto b/common/proto/auth.proto index 0842709..434da56 100644 --- a/common/proto/auth.proto +++ b/common/proto/auth.proto @@ -17,6 +17,7 @@ message RegisterRequest { string password = 3; string password_confirmation = 4; string role = 5; + string timezone = 6; // IANA timezone, for example Europe/Bratislava } message AuthResponse { diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index ebcf3c9..7b66c28 100644 Binary files a/common/src/proto/descriptor.bin and b/common/src/proto/descriptor.bin differ diff --git a/common/src/proto/komp_ac.auth.rs b/common/src/proto/komp_ac.auth.rs index c0057e1..0a5ba4c 100644 --- a/common/src/proto/komp_ac.auth.rs +++ b/common/src/proto/komp_ac.auth.rs @@ -11,6 +11,9 @@ pub struct RegisterRequest { pub password_confirmation: ::prost::alloc::string::String, #[prost(string, tag = "5")] pub role: ::prost::alloc::string::String, + /// IANA timezone, for example Europe/Bratislava + #[prost(string, tag = "6")] + pub timezone: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct AuthResponse { diff --git a/server b/server index cbbf1ac..ee16d2f 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit cbbf1ac16b38e2fc00faeaefb7023ba62bfa469c +Subproject commit ee16d2fb5f2a0b7994674103da470ad6a044e14d