mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
Merge pull request #217 from zoombody/crypted_pws
Add rake task to check for deprecated password hashes
This commit is contained in:
commit
8c90dd8f48
1 changed files with 10 additions and 0 deletions
|
|
@ -20,5 +20,15 @@ namespace :tracks do
|
|||
user.errors.each_full { |msg| puts "- #{msg}\n" }
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Check all passwords for deprecated hashes'
|
||||
task :check_passwords => :environment do
|
||||
puts "The following users have deprecated password hashes:"
|
||||
User.all.each do |user|
|
||||
if user.uses_deprecated_password?
|
||||
puts " #{user.login}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue