mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Etemplate: Fix password widget could not be cleared entirely
This commit is contained in:
parent
9130b70347
commit
ee498f703d
@ -93,12 +93,12 @@ class Password extends Etemplate\Widget\Textbox
|
|||||||
{
|
{
|
||||||
$value = $preserv;
|
$value = $preserv;
|
||||||
}
|
}
|
||||||
else if (!$plaintext && $preserv && $value_in == Credentials::decrypt(array('cred_password' => $preserv,'cred_pw_enc' => Credentials::SYSTEM_AES)))
|
else if ($value_in && !$plaintext && $preserv && $value_in == Credentials::decrypt(array('cred_password' => $preserv,'cred_pw_enc' => Credentials::SYSTEM_AES)))
|
||||||
{
|
{
|
||||||
// Don't change if they submitted the decrypted version
|
// Don't change if they submitted the decrypted version
|
||||||
$value = $preserv;
|
$value = $preserv;
|
||||||
}
|
}
|
||||||
else if (!$plaintext && $value_in !== $preserv)
|
else if ($value_in && !$plaintext && $value_in !== $preserv)
|
||||||
{
|
{
|
||||||
// Store encrypted
|
// Store encrypted
|
||||||
$encryption = null;
|
$encryption = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user