Skip to content

Commit

Permalink
Merge branch 'api-token-fix' into 'master'
Browse files Browse the repository at this point in the history
changing expected token len to 36

Same fix as we did for Scommand. 

See merge request !8
  • Loading branch information
Ron Pierce committed May 21, 2016
2 parents 8e8308f + a0e1969 commit 7693aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/soasta/jenkins/CloudTestServer.java
Expand Up @@ -213,7 +213,7 @@ public FormValidation validate() throws IOException {
obj.put("password", password.getPlainText());
}
else if(!apitoken.trim().isEmpty() && username.trim().isEmpty() && password == null) {
if(apitoken.length() != 32)
if(apitoken.length() != 36)
throw new IOException("Invalid API Token");
else
obj.put("apiToken", apitoken);
Expand Down

0 comments on commit 7693aee

Please sign in to comment.