mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-25 19:11:18 +00:00
Formatting
This commit is contained in:
parent
4cec502f7b
commit
a0ece3754b
13 changed files with 29 additions and 67 deletions
|
@ -156,9 +156,7 @@ pub struct DeleteJWTClaims {
|
|||
pub sub: String,
|
||||
}
|
||||
|
||||
pub fn generate_delete_claims(
|
||||
uuid: String,
|
||||
) -> DeleteJWTClaims {
|
||||
pub fn generate_delete_claims(uuid: String) -> DeleteJWTClaims {
|
||||
let time_now = Utc::now().naive_utc();
|
||||
DeleteJWTClaims {
|
||||
nbf: time_now.timestamp(),
|
||||
|
@ -180,9 +178,7 @@ pub struct VerifyEmailJWTClaims {
|
|||
pub sub: String,
|
||||
}
|
||||
|
||||
pub fn generate_verify_email_claims(
|
||||
uuid: String,
|
||||
) -> DeleteJWTClaims {
|
||||
pub fn generate_verify_email_claims(uuid: String) -> DeleteJWTClaims {
|
||||
let time_now = Utc::now().naive_utc();
|
||||
DeleteJWTClaims {
|
||||
nbf: time_now.timestamp(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue