1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-09-25 19:11:18 +00:00

Formatting

This commit is contained in:
Daniel García 2019-12-27 18:37:14 +01:00
commit a0ece3754b
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
13 changed files with 29 additions and 67 deletions

View file

@ -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(),