diff --git a/goss-resetpw.rb b/goss-resetpw.rb index b53ebd0..83a02c8 100644 --- a/goss-resetpw.rb +++ b/goss-resetpw.rb @@ -16,15 +16,15 @@ class GossamerResetPassword # Delete Gossamer MD5 Password user.custom_fields.delete('md5_password') # This removes the field completely user.save! - puts " STEP 1 COMPLETED: Gossamer MD5 Password custom field removed for username: #{username}" + puts " STEP 1 COMPLETED: Gossamer MD5 Password custom field removed for username: #{discourse_username}" # Set the Discourse password with the `password=` method to properly hash the password user.password = new_password user.save! - puts " STEP 2 COMPLETED: Discourse Password updated for user: #{username}" + puts " STEP 2 COMPLETED: Discourse Password updated for username: #{discourse_username}" else - puts "User not found: #{username}" + puts "User not found: #{discourse_username}" end end end