From 1c5b776efb14940148df1c8b268b336a0bd21240 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 25 Oct 2022 20:44:50 +0200 Subject: [PATCH 1/3] Fixed change password autocomplete #70 --- .../components/change-password/change-password.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-web/src/app/modules/view/change-password/components/change-password/change-password.component.html b/kdb-web/src/app/modules/view/change-password/components/change-password/change-password.component.html index 0532651f16..3bf4f2381e 100644 --- a/kdb-web/src/app/modules/view/change-password/components/change-password/change-password.component.html +++ b/kdb-web/src/app/modules/view/change-password/components/change-password/change-password.component.html @@ -20,7 +20,7 @@
+ [ngClass]="{ 'invalid-feedback-input': submitted && errors.repeatPassword}" autocomplete="new-password">
{{'view.change-password.passwords_do_not_match' | translate}}
@@ -32,4 +32,4 @@
- \ No newline at end of file + From 1f2087f50f9720beeaabe381b6fd25ba33aaf54a Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 25 Oct 2022 21:11:55 +0200 Subject: [PATCH 2/3] Fixed update user #85 --- kdb-bot/src/bot_api/service/auth_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdb-bot/src/bot_api/service/auth_service.py b/kdb-bot/src/bot_api/service/auth_service.py index 4c9fcaf190..bf5d9f86c1 100644 --- a/kdb-bot/src/bot_api/service/auth_service.py +++ b/kdb-bot/src/bot_api/service/auth_service.py @@ -349,7 +349,7 @@ class AuthService(AuthServiceABC): raise ServiceException(ServiceErrorCode.InvalidUser, 'Wrong password') # update password - if self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt) != user.password: + if update_user_dto.new_auth_user.password is not None and self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt) != user.password: user.password_salt = uuid.uuid4() user.password = self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt) From ac5271de6d7b7a45bbc3d82d2c465ae2ee8dbb10 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 25 Oct 2022 21:15:40 +0200 Subject: [PATCH 3/3] Fixed update user #85 --- kdb-bot/src/bot_api/service/auth_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdb-bot/src/bot_api/service/auth_service.py b/kdb-bot/src/bot_api/service/auth_service.py index bf5d9f86c1..ba45a15531 100644 --- a/kdb-bot/src/bot_api/service/auth_service.py +++ b/kdb-bot/src/bot_api/service/auth_service.py @@ -396,7 +396,7 @@ class AuthService(AuthServiceABC): user.email = update_user_dto.new_auth_user.email # update password - if update_user_dto.change_password and user.password != self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt): + if update_user_dto.new_auth_user.password is not None and update_user_dto.change_password and user.password != self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt): user.password_salt = uuid.uuid4() user.password = self._hash_sha256(update_user_dto.new_auth_user.password, user.password_salt)