refinerycms-authentication 0.9.9.12 → 0.9.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ class SessionsController < ::Devise::SessionsController
|
|
5
5
|
|
6
6
|
def create
|
7
7
|
super
|
8
|
-
rescue BCrypt::Errors::InvalidSalt
|
8
|
+
rescue ::BCrypt::Errors::InvalidSalt, ::BCrypt::Errors::InvalidHash
|
9
9
|
flash[:error] = t('password_encryption', :scope => 'users.forgot')
|
10
10
|
redirect_to new_user_password_path
|
11
11
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
class RemovePasswordSaltFromUsers < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
3
|
remove_column :users, :password_salt
|
4
|
+
# Make the current password invalid :(
|
5
|
+
User.all.each do |u|
|
6
|
+
u.update_attribute(:encrypted_password, u.encrypted_password[29..-1])
|
7
|
+
end
|
4
8
|
end
|
5
9
|
|
6
10
|
def self.down
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{refinerycms-authentication}
|
5
|
-
s.version = %q{0.9.9.
|
5
|
+
s.version = %q{0.9.9.13}
|
6
6
|
s.summary = %q{Authentication engine for Refinery CMS}
|
7
7
|
s.description = %q{The default authentication engine for Refinery CMS}
|
8
|
-
s.date = %q{2011-03-
|
8
|
+
s.date = %q{2011-03-28}
|
9
9
|
s.email = %q{info@refinerycms.com}
|
10
10
|
s.homepage = %q{http://refinerycms.com}
|
11
11
|
s.rubyforge_project = %q{refinerycms}
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.require_paths = %w(lib)
|
15
15
|
s.executables = %w()
|
16
16
|
|
17
|
-
s.add_dependency 'refinerycms-core', '~> 0.9.9.
|
17
|
+
s.add_dependency 'refinerycms-core', '~> 0.9.9.13'
|
18
18
|
s.add_dependency 'devise', '~> 1.2.0'
|
19
19
|
|
20
20
|
s.files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: refinerycms-authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.9.
|
5
|
+
version: 0.9.9.13
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Resolve Digital
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date: 2011-03-
|
16
|
+
date: 2011-03-28 00:00:00 +13:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.9.9.
|
27
|
+
version: 0.9.9.13
|
28
28
|
type: :runtime
|
29
29
|
version_requirements: *id001
|
30
30
|
- !ruby/object:Gem::Dependency
|