From 17688f63d3c4f008fc1ffee0209b753dda31fb37 Mon Sep 17 00:00:00 2001 From: saint Date: Thu, 29 Aug 2024 20:41:32 +1000 Subject: [PATCH] v0.19 Minor fix to match import code --- .plugin.rb.bck.swp | Bin 16384 -> 0 bytes plugin.rb | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .plugin.rb.bck.swp diff --git a/.plugin.rb.bck.swp b/.plugin.rb.bck.swp deleted file mode 100644 index 3fa27970b7b6adda92b503f2f2b8e3c883c0122a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI3O^h5z6~{Z-kl;WP2#SKZ@G@h(yJFotvtM2h9-G~rwY|Zc1jh~u8++6{T{BbJ zp6+p1&whAq5*$uMC? ztm6v^bxS|bPIuL-SO0p|Q?I(cUU+0>l@6Ol1IIfItfqbJL%GK4J)qyMa8v z$Dzu3tvyN^#-z<0$7@YCy%w8Pl_s|)Z7ynF#~18i%bu-TouJ9wfY+>md+uc0=`^@& z`s?O;ZDUXSS%FM}Oo3qv++j>l6$`RNK6f9z>+Z9|3TM|c1u_LP1u_LP1u_LP1u_LP z1u_Nx&lCvSBgT{H)6KeHLVw=W^ZAB8&g=8hzCcuNM4unmpRe}R*I%=bOo2>+Oo2>+ zOo2>+Oo2>+Oo2>+Oo2>+Oo2>+|AGRRZ5T3#|D*f|&;O(R|EG5u#>?QV;49#h-~-_O z;630+cN)e^;G5tZ;3}wtWl#Y#;172g#_z!o!HeKI&<2l#aqwPnH@F?_1HXK`VSE96 z0=S?Bjsp`M1n&laew$&u27Us*20jg*23LR$P5=|U6a4jd!}tsM0r)<60o1`sa1@lm zJ>d0yhVcscI`}-e0ye>;-~q4-4uZeG)iC}Beg(b-J_kMyEN}))fjhy?;5WA!#+SkK zU=y4M%ODR%z&~#_j9-A4z_Z{}K!9cN+qa-DSO)jXzi%;&r@+17HEgsz1x|zg;2+qy zc^$k6o&isTE8u>x52$e^bu^gEd@EpfwP}eamCNL?h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?)JkX@UFisJCcLH4TkV!Etv0`upK?P%3Rh*m52Oi zvNl4*U8K_7#&a)Zk@#Q9mLno}k~_Ug-y-i~8}fuyRr|S1%8?S~*mfKFtDT!b0ZSw9qY3}ou{)H^HC8ensP6MbOjQg%(HjMWz3eDDguTDghV%PYsK9} zHfic!BO0r9NTy;&NoJ})qY#rhy~<c0+P}Dr%XV@@9CzK;{mrpumavM)g{sZEkND}}6 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"