registration

This commit is contained in:
Priec
2026-08-05 12:07:14 +02:00
parent 7f93865f7d
commit b69a7c09a3
12 changed files with 259 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
/// The register form, one field per `RegisterRequest` field. Every one of them
/// is optional at this layer: the client does not validate either, it trims and
/// posts, and the backend answers with what is wrong.
#[derive(serde::Deserialize)]
pub(crate) struct RegisterInput {
#[serde(default)]
pub username: String,
#[serde(default)]
pub email: String,
#[serde(default)]
pub password: String,
#[serde(default)]
pub password_confirmation: String,
#[serde(default)]
pub role: String,
#[serde(default)]
pub timezone: String,
#[serde(default)]
pub phone_country: String,
}