Commit 4cd45e4b3e558c7f464b30ad6940ed4a5d4556f1
1 parent
2a5fffe5
Fix for RestClient.getActivateToken method
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -549,7 +549,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { | @@ -549,7 +549,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { | ||
549 | 549 | ||
550 | public String getActivateToken(UserId userId) { | 550 | public String getActivateToken(UserId userId) { |
551 | String activationLink = getActivationLink(userId); | 551 | String activationLink = getActivationLink(userId); |
552 | - return StringUtils.delete(activationLink, baseURL + ACTIVATE_TOKEN_REGEX); | 552 | + return activationLink.substring(activationLink.lastIndexOf(ACTIVATE_TOKEN_REGEX) + ACTIVATE_TOKEN_REGEX.length()); |
553 | } | 553 | } |
554 | 554 | ||
555 | public Optional<User> getUser() { | 555 | public Optional<User> getUser() { |