mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ability to store empty passwords in memory
This commit is contained in:
@@ -88,9 +88,7 @@ open class BasePasswordSafe @JvmOverloads constructor(val settings: PasswordSafe
|
||||
if ((value == null || value.password.isNullOrEmpty()) && memoryHelperProvider.isInitialized()) {
|
||||
// if password was set as `memoryOnly`
|
||||
memoryHelperProvider.value.get(attributes)?.let {
|
||||
if (!it.isEmpty()) {
|
||||
return it
|
||||
}
|
||||
return it
|
||||
}
|
||||
}
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user