From bd09edfa54800c657a75ae73d9f482532de3fe6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 5 Aug 2024 08:16:13 +0200 Subject: [PATCH] #1541 No need to create a digest when authentication is not digest --- lib/redmine_dmsf/hooks/controllers/account_controller_hooks.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/redmine_dmsf/hooks/controllers/account_controller_hooks.rb b/lib/redmine_dmsf/hooks/controllers/account_controller_hooks.rb index 2e779756..10409bdb 100644 --- a/lib/redmine_dmsf/hooks/controllers/account_controller_hooks.rb +++ b/lib/redmine_dmsf/hooks/controllers/account_controller_hooks.rb @@ -32,6 +32,8 @@ module RedmineDmsf user = context[:user] return unless user + return unless Setting.plugin_redmine_dmsf['dmsf_webdav_authentication'] == 'Digest' + # Updates user's DMSF WebDAV digest if controller.params[:password].present? token = Token.find_by(user_id: user.id, action: 'dmsf-webdav-digest')