From 5891af7e8c1411029fe1ad9c6d3182f88bcf3dfd Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Sun, 26 Jan 2025 12:55:13 +0100 Subject: comment and update information --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auth.rs') diff --git a/src/auth.rs b/src/auth.rs index 5fdf079..9c6f978 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -5,6 +5,7 @@ use chrono::{Duration, Utc}; use jsonwebtoken::{encode, EncodingKey, Header}; use serde::{Deserialize, Serialize}; +/* Set up scope */ pub fn auth_scope() -> Scope { web::scope("/auth") .service(register) @@ -112,7 +113,6 @@ async fn encode_token(id: usize, secret: &String) -> Result, -- cgit v1.2.3