registration with zone

This commit is contained in:
Priec
2026-07-18 18:56:44 +02:00
parent ef751e241f
commit 34d8349f2c
6 changed files with 19 additions and 2 deletions

13
Cargo.lock generated
View File

@@ -962,7 +962,9 @@ dependencies = [
"dotenvy", "dotenvy",
"fluent-templates", "fluent-templates",
"futures", "futures",
"jiff",
"lazy_static", "lazy_static",
"nucleo",
"prost", "prost",
"prost-types", "prost-types",
"ratatui", "ratatui",
@@ -3735,6 +3737,16 @@ dependencies = [
"serde_core", "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]] [[package]]
name = "jiff-static" name = "jiff-static"
version = "0.2.32" version = "0.2.32"
@@ -6233,6 +6245,7 @@ dependencies = [
"dotenvy", "dotenvy",
"futures", "futures",
"jiff", "jiff",
"jiff-sqlx",
"jsonwebtoken", "jsonwebtoken",
"lazy_static", "lazy_static",
"once_cell", "once_cell",

2
client

Submodule client updated: 9c8ae0b6fa...7f147d8630

View File

@@ -17,6 +17,7 @@ message RegisterRequest {
string password = 3; string password = 3;
string password_confirmation = 4; string password_confirmation = 4;
string role = 5; string role = 5;
string timezone = 6; // IANA timezone, for example Europe/Bratislava
} }
message AuthResponse { message AuthResponse {

Binary file not shown.

View File

@@ -11,6 +11,9 @@ pub struct RegisterRequest {
pub password_confirmation: ::prost::alloc::string::String, pub password_confirmation: ::prost::alloc::string::String,
#[prost(string, tag = "5")] #[prost(string, tag = "5")]
pub role: ::prost::alloc::string::String, 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)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AuthResponse { pub struct AuthResponse {

2
server

Submodule server updated: cbbf1ac16b...ee16d2fb5f