summaryrefslogtreecommitdiff
path: root/src/auth.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-26 12:55:13 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-26 12:55:13 +0100
commit5891af7e8c1411029fe1ad9c6d3182f88bcf3dfd (patch)
treefde6a420e55faaf9c696298b5aedb849c1b39189 /src/auth.rs
parent5898e5ab4359945ef52dc7460bb2937a85603fc2 (diff)
comment and update information
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs2
1 files changed, 1 insertions, 1 deletions
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<String, HttpResponse
};
}
-// todo! tell if the user has been deleted or not
#[delete("/user")]
pub async fn delete_user(
app_state: web::Data<AppState>,