summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 4d19619..a7105d2 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -503,11 +503,14 @@ class UserKeyManager(BaseManager):
class User(GitlabObject):
_url = '/users'
shortPrintAttr = 'username'
- # FIXME: password is required for create but not for update
- requiredCreateAttrs = ['email', 'username', 'name']
- optionalCreateAttrs = ['password', 'skype', 'linkedin', 'twitter',
- 'projects_limit', 'extern_uid', 'provider',
- 'bio', 'admin', 'can_create_group', 'website_url',
+ requiredCreateAttrs = ['email', 'username', 'name', 'password']
+ optionalCreateAttrs = ['skype', 'linkedin', 'twitter', 'projects_limit',
+ 'extern_uid', 'provider', 'bio', 'admin',
+ 'can_create_group', 'website_url', 'confirm']
+ requiredUpdateAttrs = ['email', 'username', 'name']
+ optionalUpdateAttrs = ['password', 'skype', 'linkedin', 'twitter',
+ 'projects_limit', 'extern_uid', 'provider', 'bio',
+ 'admin', 'can_create_group', 'website_url',
'confirm']
managers = [('keys', UserKeyManager, [('user_id', 'id')])]