Disable confirmation email after account creation


(Matthieu Lamarque) #1

Hi,

What is the procedure to disable confirmation email after user’s creation.
I’m using a Yammer connect to signup/signin so i don’t need to have an email confirmation.

I tried to activate user after create (in my plugin) :

def after_create_account(user, auth)
  data = auth[:extra_data]
  user.activate
  user.save
  ::PluginStore.set("yammer", "yammer_uid_#{data[:yammer_uid]}", {user_id: user.id })
end

Thanks for you help.
Matthieu


(Matthieu Lamarque) #2

i resolve my problem, thanks to this post : API to create a user without sending out activation email?

You have to deactivate and activate user after creation.