Gitlab API should allow me to create a user that needs no confirmation
Created by: darklajid
Migration: Gitorious -> Gitlab.
To migrate users/projects/repositories the plan is to do it exactly in that order: I need the users first to have some kind of mapping between permissions in Gitorious and Gitlab, when I create the projects.
Users are LDAP backed:
- the email address is 100% correct
- the password that I have to specify is utterly useless (might need another ticket) and random
Currently LDAP support means that users could easily 'register', they'd be autocreated when they try to log in. But THAT would mean that I couldn't define permissions for these not-yet-in-gitlab users. Creating these users using the web API I can grant permissions, but these users are now locked out as unconfirmed.
Testing the migration means that I'm doing this process over and over again (=> Sending mails would be bad) and even the final deployment shouldn't spam users.
The only workaround right now is to modify the DB directly, issuing something like
update users set confirmation_token=null, confirmed_at=now() where confirmed_at is null;
I propose extending the web API to create
- users that need no confirmation
- (optional) require no password (those users would be locked out of course or need to be ldap backed)