mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 17:56:10 +01:00
Remove support for deprecated password-hashing algorithm
* Remove all methods implementing and checking for the old algorithm * Document a pre-upgrade step to check for remaining obsolete passwords * Remove config.salt
This commit is contained in:
parent
6caa2de318
commit
ea0d40060a
19 changed files with 17 additions and 164 deletions
|
|
@ -24,15 +24,5 @@ namespace :tracks do
|
|||
user.errors.full_messages.each { |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