Skip to content

Commit

Permalink
Tidy up a bit #62
Browse files Browse the repository at this point in the history
  • Loading branch information
gnl42 authored and ruspl-afed committed Oct 19, 2023
1 parent d628ac0 commit 2c241c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public GistRepositorySettingsPage(TaskRepository taskRepository) {
super(Messages.GistRepositorySettingsPage_Title,
Messages.GistRepositorySettingsPage_Description, taskRepository);
setNeedsAnonymousLogin(false);
setUseToken(true, false);
setUseTokenForAuthentication(false);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public IssueRepositorySettingsPage(final TaskRepository taskRepository) {
super(Messages.IssueRepositorySettingsPage_Title,
Messages.IssueRepositorySettingsPage_Description,
taskRepository);
setUseToken(true, true);
setUseTokenForAuthentication(true);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public PullRequestRepositorySettingsPage(final TaskRepository taskRepository) {
super(Messages.PullRequestRepositorySettingsPage_Title,
Messages.PullRequestRepositorySettingsPage_Description,
taskRepository);
setUseToken(true, true);
setUseTokenForAuthentication(true);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public abstract class AbstractRepositorySettingsPage extends AbstractTaskReposit
/**
* @since 4.1
*/
private boolean useTokenForAuthentication;
private boolean useTokenForAuthentication = false;

private boolean userOptional = true;

Expand Down Expand Up @@ -2489,8 +2489,8 @@ public boolean isUserOptional() {
* @param userOptional
* Allow username as well as token
*/
public void setUseToken(final boolean useTokenForAuthentication, final boolean userOptional) {
this.useTokenForAuthentication = useTokenForAuthentication;
public void setUseTokenForAuthentication(final boolean userOptional) {
this.useTokenForAuthentication = true;
this.userOptional = userOptional;
}

Expand Down

0 comments on commit 2c241c7

Please sign in to comment.