From 96aa6bbc2b44afec45f80fca9ccf4d08dccd2973 Mon Sep 17 00:00:00 2001 From: phuongntt Date: Tue, 6 Feb 2024 16:07:31 +0700 Subject: [PATCH] chore: Fix bug create new session by otp --- locker_server/core/services/user_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locker_server/core/services/user_service.py b/locker_server/core/services/user_service.py index d6aa990..441eb2d 100644 --- a/locker_server/core/services/user_service.py +++ b/locker_server/core/services/user_service.py @@ -935,7 +935,7 @@ def user_session_by_otp(self, user: User, password: str, method: str, otp_code: if save_device: # Save device to device factor2 white list device_factor2_create_data = { - "device_id": device_existed.device_id, + "device_id": device_obj.device_id, "factor2_method_id": factor2_method.factor2_method_id } self.device_factor2_repository.create_device_factor2(