I just solved it ...
In the find_for_facebook_oauth action in the User model , I used the
confirm! before saving it...
def self.find_for_facebook_oauth(access_token,
signed_in_resource=nil)
data = access_token['extra']['user_hash']
if user = User.find_by_email(data["email"])
user
else # Create an user with a stub password.
user = User.new(:email => data["email"], :password =>
Devise.friendly_token[0,20], :agreement_status => true)
user.confirm!
user.save!
user
end
end
On 22 déc, 11:07, kadoudal <
kadou...@gmail.com> wrote:
> I have the same issue ... did you solved it ?
>
> On 9 déc, 14:16, Mark Westling <
mark.westl...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I'd like to allow users to sign up either the standard way or through
> > Facebook (or some other OAuth provider). If a user registers manually, I
> > want to confirm the email address (viaconfirmable), but if they come from