Skip to content

Commit 3a9bd74

Browse files
menduogmessner
authored andcommitted
Create User API has some problems, and I modified it (#100)
1 parent 158abc0 commit 3a9bd74

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/main/java/org/gitlab4j/api/UserApi.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,13 @@ Form userToForm(User user, Integer projectsLimit, String password, boolean creat
648648
.withParam("twitter", user.getTwitter(), false)
649649
.withParam("website_url", user.getWebsiteUrl(), false)
650650
.withParam("projects_limit", projectsLimit, false)
651-
.withParam("external", user.getExternal(), false)
651+
.withParam("organization", user.getOrganization(), false)
652652
.withParam("provider", user.getProvider(), false)
653653
.withParam("bio", user.getBio(), false)
654654
.withParam("location", user.getLocation(), false)
655655
.withParam("admin", user.getIsAdmin(), false)
656656
.withParam("can_create_group", user.getCanCreateGroup(), false)
657-
.withParam("external", user.getExternal(), false));
657+
.withParam("external", user.getExternal(), false))
658+
.withParam("skip_confirmation",user.getSkipConfirmation(),false);
658659
}
659660
}

src/main/java/org/gitlab4j/api/models/AbstractUser.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class AbstractUser {
3939
private String username;
4040
private String websiteUrl;
4141
private String webUrl;
42+
private Boolean skipConfirmation;
4243

4344
public String getAvatarUrl() {
4445
return avatarUrl;
@@ -279,4 +280,12 @@ public String getWebUrl() {
279280
public void setWebUrl(String webUrl) {
280281
this.webUrl = webUrl;
281282
}
283+
284+
public Boolean getSkipConfirmation() {
285+
return skipConfirmation;
286+
}
287+
288+
public void setSkipConfirmation(Boolean skipConfirmation) {
289+
this.skipConfirmation = skipConfirmation;
290+
}
282291
}

0 commit comments

Comments
 (0)