Added script to update users default passwords

This commit is contained in:
2017-03-31 16:59:10 +02:00
parent cebccfdfda
commit 74193ab3cf
+4
View File
@@ -0,0 +1,4 @@
helper = ApplicationController.helpers
never_signed_in = Supporter.where(:sign_in_count.lt => 1)
never_signed_in.each_with_index {|u,i|puts "#{i} #{u.email}"; u.update_attributes password: "#{u.support}#{ helper.number_with_delimiter(u.zip, :delimiter => ',')}"}