Skip to content

Commit

Permalink
Merge pull request #72 from pa4373/newuser-confirm-fix
Browse files Browse the repository at this point in the history
Can bypassing confirm when creating new user now
  • Loading branch information
Gauvain Pocentek committed Sep 24, 2015
2 parents f07de94 + a0fe68b commit d069381
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gitlab/__init__.py
Expand Up @@ -854,7 +854,13 @@ class User(GitlabObject):
requiredCreateAttrs = ['email', 'username', 'name']
optionalCreateAttrs = ['password', 'skype', 'linkedin', 'twitter',
'projects_limit', 'extern_uid', 'provider',
'bio', 'admin', 'can_create_group', 'website_url']
'bio', 'admin', 'can_create_group', 'website_url',
'confirm']

def _data_for_gitlab(self, extra_parameters={}):
if hasattr(self, 'confirm'):
self.confirm = str(self.confirm).lower()
return super(User, self)._data_for_gitlab(extra_parameters)

def Key(self, id=None, **kwargs):
return UserKey._get_list_or_object(self.gitlab, id,
Expand Down

0 comments on commit d069381

Please sign in to comment.