users: store timezone, default is "UTC"

This commit is contained in:
Philippe Loctaux 2023-04-13 22:01:27 +02:00
parent 1168e1494c
commit e49c146dfd
14 changed files with 415 additions and 322 deletions

View file

@ -21,6 +21,7 @@ pub struct JwtClaims {
pub email: Option<String>,
pub is_admin: bool,
pub roles: Vec<String>,
pub zoneinfo: String,
}
impl JwtClaims {
@ -42,6 +43,7 @@ impl JwtClaims {
email: user.email().map(String::from),
is_admin: user.is_admin(),
roles,
zoneinfo: user.timezone().into(),
}
}