Skip to content

Commit

Permalink
Set saved flag depending on default with no user interface shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 11, 2023
1 parent d413936 commit 6dd10f3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import ch.cyberduck.core.Host;
import ch.cyberduck.core.LocaleFactory;
import ch.cyberduck.core.LoginCallback;
import ch.cyberduck.core.LoginOptions;
import ch.cyberduck.core.exception.BackgroundException;
import ch.cyberduck.core.local.Application;
import ch.cyberduck.core.preferences.PreferencesFactory;
Expand Down Expand Up @@ -68,6 +69,7 @@ public void callback(final String code) {
}
prompt.await(signal, bookmark, String.format("%s %s", LocaleFactory.localizedString("Login", "Login"), BookmarkNameProvider.toString(bookmark, true)),
LocaleFactory.localizedString("Open web browser to authenticate and obtain an authorization code", "Credentials"));
bookmark.getCredentials().setSaved(new LoginOptions().save);
return authenticationCode.get();
}
}

0 comments on commit 6dd10f3

Please sign in to comment.