Reset secret if decrypt failed
This commit is contained in:
parent
7257ab62bc
commit
ec489a9530
@ -128,6 +128,11 @@ function _kstoredec {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
openssl enc -d -aes-256-cbc -pbkdf2 -k "$_AUTH_SECRET" -a -A
|
openssl enc -d -aes-256-cbc -pbkdf2 -k "$_AUTH_SECRET" -a -A
|
||||||
|
_code=$?
|
||||||
|
if [ $_code -ne 0 ]; then
|
||||||
|
_AUTH_SECRET=
|
||||||
|
return $_code
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function _kstoresecret-auto {
|
function _kstoresecret-auto {
|
||||||
|
Loading…
Reference in New Issue
Block a user