Skip to content

Commit 0d0d45f

Browse files
committed
Attach password to credentials as we do not support partial updates in Windows Credential Manager.
1 parent e803724 commit 0d0d45f

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)