Skip to content

Commit

Permalink
Can bypassing confirm when creating new user
Browse files Browse the repository at this point in the history
  • Loading branch information
pa4373 committed Sep 23, 2015
1 parent f07de94 commit a0fe68b
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 a0fe68b

Please sign in to comment.