mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 15:47:59 -05:00
Compare commits
2 Commits
00a97782cb
...
v1.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ce5843888 | ||
|
|
1210fd4b77 |
@@ -1,3 +1,8 @@
|
||||
== 1.2.1
|
||||
|
||||
* enhancements
|
||||
* better upgrade steps
|
||||
|
||||
== 1.2.0
|
||||
|
||||
* bug fix
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
devise (1.2.rc2)
|
||||
devise (1.2.0)
|
||||
bcrypt-ruby (~> 2.1.2)
|
||||
orm_adapter (~> 0.0.3)
|
||||
warden (~> 1.0.3)
|
||||
|
||||
@@ -42,16 +42,18 @@ module Devise
|
||||
when :bcrypt
|
||||
puts "[DEVISE] From version 1.2, there is no need to set your encryptor to bcrypt " \
|
||||
"since encryptors are only enabled if you include :encryptable in your models. " \
|
||||
"With this change, we can integrate better with bcrypt and get rid of the " \
|
||||
"password_salt column (since bcrypt stores the salt with password). " \
|
||||
"Please comment config.encryptor in your initializer to get rid of this warning."
|
||||
"To update your app, please:\n\n" \
|
||||
"1) Remove config.encryptor from your initializer;\n" \
|
||||
"2) Add t.encryptable to your old migrations;\n" \
|
||||
"3) [Optional] Remove password_salt in a new recent migration. Bcrypt does not require it anymore.\n"
|
||||
when nil
|
||||
# Nothing to say
|
||||
else
|
||||
puts "[DEVISE] You are using #{Devise.encryptor} as encryptor. From version 1.2, " \
|
||||
"you need to explicitly add `devise :encryptable, :encryptor => :#{Devise.encryptor}` " \
|
||||
"to your models and comment the current value in the config/initializers/devise.rb. " \
|
||||
"You must also add t.encryptable to your existing migrations."
|
||||
"you need to explicitly add encryptable as dependency. To update your app, please:\n\n" \
|
||||
"1) Remove config.encryptor from your initializer;\n" \
|
||||
"2) Add t.encryptable to your old migrations;\n" \
|
||||
"3) Add `devise :encryptable, :encryptor => :#{Devise.encryptor}` to your models.\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module Devise
|
||||
VERSION = "1.2.0".freeze
|
||||
VERSION = "1.2.1".freeze
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user