users: store timezone, default is "UTC"
This commit is contained in:
parent
1168e1494c
commit
e49c146dfd
14 changed files with 415 additions and 322 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue