diff --git a/.plugin.rb.bck.swp b/.plugin.rb.bck.swp deleted file mode 100644 index 3fa2797..0000000 Binary files a/.plugin.rb.bck.swp and /dev/null differ diff --git a/plugin.rb b/plugin.rb index 4e3460d..a7ba49d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -4,7 +4,7 @@ # name: discourse-md5_authentication # about: A plugin to authenticate users with MD5 passwords from legacy systems -# version: 0.18 +# version: 0.19 # authors: saint@federated.computer # url: https://gitea.federated.computer/saint/discourse-md5_authentication.git @@ -43,7 +43,7 @@ after_initialize do Rails.logger.warn "MD5 -- CC -- user.present" # Retrieve the provided password and custom MD5 password hash from user custom fields password = params[:password] - custom_password_md5 = user.custom_fields['custom_password_md5'] + custom_password_md5 = user.custom_fields['md5_password'] # Log the presence of custom MD5 hash for debugging Rails.logger.warn "MD5 -- Check for MD5 password in custom field"