Uow, I just changed the order to
user.skip_confirmation! (***)
  if user.save!

And it worked!
Anyway, thank you guys, hope this might help someone else.

Or maybe it would be nice to force this options through the API.


2014/1/8 Diego Pasqualin <[email protected]>

> Hello, I need to bulk create users and I did manage to do this using the
> gitlab API. The problem is that I don't want new users to receive the
> "Confirm my account" e-mail, I want the accounts to be automatically
> confirmed when I create them.
>
> Any thoughts on how to do it?
>
> What I tried was to add the line *** on /home/git/gitlab/lib/api/users.rb,
> which didn't work:
>         if user.save!
>           user.skip_confirmation! (***)
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "GitLab" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/gitlabhq/ctf8x0xpOOE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to