Skip to content

Commit eb69c85

Browse files
committed
revert changes in SetupWizard
1 parent 3852408 commit eb69c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/jenkins/install/SetupWizard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public SetupWizard() {
112112
* E.g. 110123456789abcdef0123456789abcdef.
113113
* A fixed API Token will be created for the user with that plain value as the token.
114114
* It is strongly recommended to use it to generate a new one (random) and then revoke it.
115-
* See {@link ApiTokenProperty#generateNewToken(String, java.util.Date)} and {@link ApiTokenProperty#revokeAllTokensExceptOne(String)}
115+
* See {@link ApiTokenProperty#generateNewToken(String)} and {@link ApiTokenProperty#revokeAllTokensExceptOne(String)}
116116
* for scripting methods or using the web API calls:
117117
* /user/[user-login]/descriptorByName/jenkins.security.ApiTokenProperty/generateNewToken and
118118
* /user/[user-login]/descriptorByName/jenkins.security.ApiTokenProperty/revokeAllExcept
@@ -216,7 +216,7 @@ private void createInitialApiToken(User user) throws IOException, InterruptedExc
216216

217217
String sysProp = ADMIN_INITIAL_API_TOKEN;
218218
if (sysProp.equals("true")) {
219-
TokenUuidAndPlainValue tokenUuidAndPlainValue = apiTokenProperty.generateNewToken("random-generation-during-setup-wizard", null);
219+
TokenUuidAndPlainValue tokenUuidAndPlainValue = apiTokenProperty.generateNewToken("random-generation-during-setup-wizard");
220220
FilePath fp = getInitialAdminApiTokenFile();
221221
// same comment as in the init method
222222

0 commit comments

Comments
 (0)