mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
github: do not store password in memory provider if "save password" checkbox disabled
* password is stored in GithubAuthDataHolder during the sesion, so we will not ask for password multiple times * this causes confusing behavior of settings configurable, when password disappears after IDE restart
This commit is contained in:
@@ -170,7 +170,8 @@ public class GithubSettings implements PersistentStateComponent<GithubSettings.S
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setPassword(@NotNull String password, boolean rememberPassword) {
|
private void setPassword(@NotNull String password, boolean rememberPassword) {
|
||||||
PasswordSafe.getInstance().setPassword(GithubSettings.class, GITHUB_SETTINGS_PASSWORD_KEY, password, !rememberPassword);
|
if (!rememberPassword) return;
|
||||||
|
PasswordSafe.getInstance().setPassword(GithubSettings.class, GITHUB_SETTINGS_PASSWORD_KEY, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isValidGitAuth(@NotNull GithubAuthData auth) {
|
private static boolean isValidGitAuth(@NotNull GithubAuthData auth) {
|
||||||
|
|||||||
Reference in New Issue
Block a user