From 015af141d03f4bdf4bbc971b04ce9303a528bdbd Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 23 May 2024 09:18:35 +0000 Subject: [PATCH] Update src/controllers/login_controller.rs --- src/controllers/login_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/login_controller.rs b/src/controllers/login_controller.rs index 026d9b7..06e7496 100644 --- a/src/controllers/login_controller.rs +++ b/src/controllers/login_controller.rs @@ -143,7 +143,7 @@ pub async fn login_route( } // Try to authenticate user else if let Some(req) = &req { - login = req.login.clone(); + login.clone_from(&req.login); let response: LoginResult = users .send(users_actor::LocalLoginRequest { login: login.clone(),