aboutsummaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authoralpaylan2021-04-14 16:36:42 +0300
committeralpaylan2021-04-14 16:36:42 +0300
commit6a6cfcd2df56938aa356e20e4728552a8c2ee8aa (patch)
tree0d9b6d616c31fcd35883fe8619633cdbaec09a49 /src/handlers.rs
parent2bce40bfeaefc64083d285233777983af5345ce5 (diff)
downloadgradecoin-6a6cfcd2df56938aa356e20e4728552a8c2ee8aa.tar.gz
gradecoin-6a6cfcd2df56938aa356e20e4728552a8c2ee8aa.tar.bz2
gradecoin-6a6cfcd2df56938aa356e20e4728552a8c2ee8aa.zip
embed user passwds to the code structs.
Diffstat (limited to 'src/handlers.rs')
-rw-r--r--src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index e34abbe..b9df931 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -39,7 +39,7 @@ pub async fn authenticate_user(
39 debug!("POST request to /register, authenticate_user"); 39 debug!("POST request to /register, authenticate_user");
40 let provided_id = request.student_id.clone(); 40 let provided_id = request.student_id.clone();
41 41
42 let priv_student_id = match MetuId::new(request.student_id) { 42 let priv_student_id = match MetuId::new(request.student_id, request.passwd) {
43 Some(id) => id, 43 Some(id) => id,
44 None => { 44 None => {
45 let res_json = warp::reply::json(&GradeCoinResponse { 45 let res_json = warp::reply::json(&GradeCoinResponse {