diff options
author | pa4373 <pa4373@gmail.com> | 2015-09-24 01:01:08 +0800 |
---|---|---|
committer | pa4373 <pa4373@gmail.com> | 2015-09-24 01:01:08 +0800 |
commit | a0fe68bc07c9b551a7daec87b31f481878f4d450 (patch) | |
tree | 7af6803a0d7498d821d9853bdf29dba2bbf21ae8 /gitlab | |
parent | f07de9484d5f05fd09c47cba41665a858b485cf0 (diff) | |
download | gitlab-a0fe68bc07c9b551a7daec87b31f481878f4d450.tar.gz |
Can bypassing confirm when creating new user
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 45bbf08..2fbe2fa 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -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, |