v0.20 Minor fix to match import code
This commit is contained in:
parent
17688f63d3
commit
54f0c3d78a
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# name: discourse-md5_authentication
|
# name: discourse-md5_authentication
|
||||||
# about: A plugin to authenticate users with MD5 passwords from legacy systems
|
# about: A plugin to authenticate users with MD5 passwords from legacy systems
|
||||||
# version: 0.19
|
# version: 0.20
|
||||||
# authors: saint@federated.computer
|
# authors: saint@federated.computer
|
||||||
# url: https://gitea.federated.computer/saint/discourse-md5_authentication.git
|
# url: https://gitea.federated.computer/saint/discourse-md5_authentication.git
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ after_initialize do
|
|||||||
user.approved = true
|
user.approved = true
|
||||||
user.approved_at = Time.now
|
user.approved_at = Time.now
|
||||||
user.approved_by_id = 1
|
user.approved_by_id = 1
|
||||||
user.custom_fields['custom_password_md5'] = nil # Clear the custom MD5 field
|
user.custom_fields['md5_password'] = nil # Clear the custom MD5 field
|
||||||
user.save!
|
user.save!
|
||||||
Rails.logger.warn "MD5 -- DD -- user.present"
|
Rails.logger.warn "MD5 -- DD -- user.present"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user