devise_security_extension 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{devise_security_extension}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Marco Scholl"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-09}
|
13
13
|
s.description = %q{a gem for extend devise for more password security}
|
14
14
|
s.email = %q{team@phatworx.de}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,10 +38,12 @@ module Devise
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def current_equal_password_validation
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
unless self.encrypted_password_change.nil?
|
42
|
+
dummy = self.class.new
|
43
|
+
dummy.encrypted_password = self.encrypted_password_change.first
|
44
|
+
dummy.password_salt = self.password_salt_change.first
|
45
|
+
self.errors.add(:password, :equal_to_current_password) if dummy.valid_password?(self.password)
|
46
|
+
end
|
45
47
|
end
|
46
48
|
|
47
49
|
protected
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: devise_security_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Marco Scholl
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-09 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements:
|
130
130
|
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
hash: -
|
132
|
+
hash: -4027383644345550227
|
133
133
|
segments:
|
134
134
|
- 0
|
135
135
|
version: "0"
|