Cleaning
This commit is contained in:
parent
82909092d5
commit
ddf138ab99
2 changed files with 2 additions and 3 deletions
|
@ -24,8 +24,8 @@ pub fn token_factory(user: &str) -> JwtResult<String> {
|
||||||
&Header::default(),
|
&Header::default(),
|
||||||
&Claims {
|
&Claims {
|
||||||
sub: user.to_string(),
|
sub: user.to_string(),
|
||||||
iss: "localhost".to_string(),
|
iss: "frostbyte".to_string(),
|
||||||
aud: "localhost".to_string(),
|
aud: "frostbyte".to_string(),
|
||||||
iat: chrono::Utc::now().timestamp() as usize,
|
iat: chrono::Utc::now().timestamp() as usize,
|
||||||
exp: (chrono::Utc::now() + chrono::Duration::days(DAYS_VALID)).timestamp() as usize,
|
exp: (chrono::Utc::now() + chrono::Duration::days(DAYS_VALID)).timestamp() as usize,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
// #![allow(unused_imports, dead_code, unused_variables, unused_mut)]
|
|
||||||
use actix_files::Files;
|
use actix_files::Files;
|
||||||
use actix_web::middleware;
|
use actix_web::middleware;
|
||||||
use actix_web::web::Data;
|
use actix_web::web::Data;
|
||||||
|
|
Loading…
Reference in a new issue