devise_security_extension 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/app/controllers/devise/password_expired_controller.rb +1 -0
- data/config/locales/de.yml +6 -2
- data/config/locales/en.yml +6 -2
- data/devise_security_extension.gemspec +2 -2
- data/lib/devise_security_extension/models/password_archivable.rb +1 -1
- data/lib/devise_security_extension/models/secure_validatable.rb +1 -1
- metadata +15 -15
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.6
|
@@ -15,6 +15,7 @@ class Devise::PasswordExpiredController < ApplicationController
|
|
15
15
|
if resource.update_with_password(params[resource_name])
|
16
16
|
warden.session(scope)[:password_expired] = false
|
17
17
|
set_flash_message :notice, :updated
|
18
|
+
sign_in scope, resource, :bypass => true
|
18
19
|
redirect_to stored_location_for(scope) || :root
|
19
20
|
else
|
20
21
|
clean_up_passwords(resource)
|
data/config/locales/de.yml
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
de:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
taken_in_past: wurde bereits in der Vergangenheit verwendet!
|
5
|
+
equal_to_current_password: darf nicht dem aktuellen Passwort entsprechen!
|
2
6
|
devise:
|
3
7
|
password_expired:
|
4
|
-
updated: "Das neue Passwort wurde übernommen"
|
5
|
-
change_required: Ihr Passwort ist abgelaufen. Bitte vergeben sie ein neues Passwort!
|
8
|
+
updated: "Das neue Passwort wurde übernommen."
|
9
|
+
change_required: Ihr Passwort ist abgelaufen. Bitte vergeben sie ein neues Passwort!
|
data/config/locales/en.yml
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
en:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
taken_in_past: was already taken in the past!
|
5
|
+
equal_to_current_password: must be different to the current password!
|
2
6
|
devise:
|
3
7
|
password_expired:
|
4
|
-
updated: Your new password is saved
|
5
|
-
change_required: Your password is expired. Please renew your password!
|
8
|
+
updated: Your new password is saved.
|
9
|
+
change_required: Your password is expired. Please renew your password!
|
@@ -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.6"
|
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-06-
|
12
|
+
s.date = %q{2011-06-06}
|
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 = [
|
@@ -9,7 +9,7 @@ module Devise # :nodoc:
|
|
9
9
|
|
10
10
|
base.class_eval do
|
11
11
|
include InstanceMethods
|
12
|
-
has_many :old_passwords, :as => :password_archivable, :
|
12
|
+
has_many :old_passwords, :as => :password_archivable, :dependent => :destroy
|
13
13
|
before_update :archive_password
|
14
14
|
validate :validate_password_archive
|
15
15
|
end
|
@@ -19,7 +19,7 @@ module Devise
|
|
19
19
|
base.class_eval do
|
20
20
|
|
21
21
|
# uniq login
|
22
|
-
validates authentication_keys[0], :uniqueness => {:scope => authentication_keys[1..-1]
|
22
|
+
validates authentication_keys[0], :uniqueness => {:scope => authentication_keys[1..-1], :case_sensitive => (case_insensitive_keys != false)}, :if => :email_changed?
|
23
23
|
|
24
24
|
# validates email
|
25
25
|
validates :email, :presence => true, :if => :email_required?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_security_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-06-
|
12
|
+
date: 2011-06-06 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &24659860 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *24659860
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: devise
|
28
|
-
requirement: &
|
28
|
+
requirement: &24659380 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *24659380
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rails_email_validator
|
39
|
-
requirement: &
|
39
|
+
requirement: &24658900 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *24658900
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
|
-
requirement: &
|
50
|
+
requirement: &24658420 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 1.0.0
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *24658420
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: jeweler
|
61
|
-
requirement: &
|
61
|
+
requirement: &24657940 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 1.5.2
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *24657940
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rcov
|
72
|
-
requirement: &
|
72
|
+
requirement: &24657460 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *24657460
|
81
81
|
description: a gem for extend devise for more password security
|
82
82
|
email: team@phatworx.de
|
83
83
|
executables: []
|
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
segments:
|
130
130
|
- 0
|
131
|
-
hash:
|
131
|
+
hash: 669408536488345234
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
none: false
|
134
134
|
requirements:
|