Skip to content

Commit afbab42

Browse files
authored
Merge pull request #16943 from iterate-ch/bugfix/CTERA-280
Attach password to credentials as we do not support partial updates i…
2 parents e803724 + 0d0d45f commit afbab42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ctera/src/main/java/ch/cyberduck/core/ctera/CteraAuthenticationHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ public CteraTokens validate() throws BackgroundException {
153153
public CteraTokens save(final CteraTokens tokens) throws LocalAccessDeniedException {
154154
log.debug("Save new tokens {} for {}", tokens, host);
155155
final Credentials credentials = host.getCredentials();
156-
credentials.withToken(String.format("%s:%s", tokens.getDeviceId(), tokens.getSharedSecret()))
156+
credentials
157+
.withToken(String.format("%s:%s", tokens.getDeviceId(), tokens.getSharedSecret()))
158+
.withPassword(password)
157159
.withSaved(new LoginOptions().save);
158160
if(credentials.isSaved()) {
159161
store.save(host);

0 commit comments

Comments
 (0)