summaryrefslogtreecommitdiffstats
path: root/src/handlers.rs
diff options
context:
space:
mode:
authoralpaylan2021-04-14 16:36:42 +0300
committeralpaylan2021-04-14 16:36:42 +0300
commit85b29df4208b83c1949032db56c8d76e8c76b705 (patch)
tree5c44f069e0e5de7044e0ac26c4c2a4fffceec6ec /src/handlers.rs
parent3bb302ccef77af5650a088c7030563ba84d1552c (diff)
downloadgradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.tar.gz
gradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.tar.bz2
gradecoin-85b29df4208b83c1949032db56c8d76e8c76b705.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 {