Skip to content

Can bypassing confirm when creating new user now#72

Merged
gpocentek merged 1 commit intopython-gitlab:masterfrom
pa4373:newuser-confirm-fix
Sep 24, 2015
Merged

Can bypassing confirm when creating new user now#72
gpocentek merged 1 commit intopython-gitlab:masterfrom
pa4373:newuser-confirm-fix

Conversation

@pa4373
Copy link
Copy Markdown
Contributor

@pa4373 pa4373 commented Sep 23, 2015

GitLab add 'confirm' field support to its API since 7.9.0. However, it takes 'false' string only when the content type of request is set to 'application/json'. So I just add confirm to optionalCreateAttrs list and override _data_for_gitlab to make sure confirm is converted to boolean string.

It has been tested on GitLab HQ 7.14.3 and API is v3.

Additional info: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1281

gpocentek pushed a commit that referenced this pull request Sep 24, 2015
Can bypassing confirm when creating new user now
@gpocentek gpocentek merged commit d069381 into python-gitlab:master Sep 24, 2015
@gpocentek
Copy link
Copy Markdown
Contributor

Looks good, thanks!

@pa4373 pa4373 deleted the newuser-confirm-fix branch September 24, 2015 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants