di-simple_auth 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 1
2
+ :minor: 2
3
3
  :patch: 0
4
4
  :major: 0
@@ -59,6 +59,8 @@ module SimpleAuth
59
59
  def confirm!
60
60
  self.confirmed = true
61
61
  self.confirmation_token = nil
62
+ primary_contact = self.contacts.where(:value => self.login , :confirmed => true).first
63
+ primary_contact.confirm!
62
64
  save(:validate => false)
63
65
  end
64
66
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dieinzige
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-03 00:00:00 +03:00
17
+ date: 2010-03-09 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency