lib/simple_auth/authenticated.rb in di-simple_auth-0.2.0 vs lib/simple_auth/authenticated.rb in di-simple_auth-0.2.1

- old
+ new

@@ -57,10 +57,10 @@ def confirm! self.confirmed = true self.confirmation_token = nil - primary_contact = self.contacts.where(:value => self.login , :confirmed => true).first + primary_contact = self.contacts.where(:value => self.login , :confirmed => false).first primary_contact.confirm! save(:validate => false) end def reset_remember_token! \ No newline at end of file