di-simple_auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/simple_auth/authenticated.rb +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -59,7 +59,7 @@ 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 =>
|
62
|
+
primary_contact = self.contacts.where(:value => self.login , :confirmed => false).first
|
63
63
|
primary_contact.confirm!
|
64
64
|
save(:validate => false)
|
65
65
|
end
|