authlogic_crowd_rest 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{authlogic_crowd_rest}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rob Di Marco"]
@@ -94,8 +94,6 @@ module AuthlogicCrowdRest
94
94
  end
95
95
 
96
96
  def validate_by_crowd_rest
97
- self.invalid_password = false
98
-
99
97
  errors.add(:crowd_login, I18n.t('error_messages.crowd_login_blank', :default => "can not be blank")) if crowd_login.blank?
100
98
  errors.add(:crowd_password, I18n.t('error_messages.crowd_password_blank', :default => "can not be blank")) if crowd_password.blank?
101
99
  return if errors.count > 0
@@ -109,11 +107,7 @@ module AuthlogicCrowdRest
109
107
  end
110
108
 
111
109
  if !(send( :verify_crowd_password, attempted_record))
112
- self.invalid_password = true
113
- generalize_credentials_error_messages? ?
114
- add_general_credentials_error :
115
- errors.add("crowd_password", I18n.t('error_messages.crowd_password_invalid', :default => "is not valid"))
116
- return
110
+ errors.add_to_base(I18n.t('error_messages.crowd_password_invalid', :default => "Password is not valid"))
117
111
  end
118
112
  end
119
113
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authlogic_crowd_rest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rob Di Marco