mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
Hardening password checks
This commit is contained in:
parent
ffdae1dca1
commit
3fdee2975d
4 changed files with 6 additions and 4 deletions
|
@ -273,7 +273,7 @@ is_object_value_exist() {
|
|||
is_password_valid() {
|
||||
if [[ "$password" =~ ^/tmp/ ]]; then
|
||||
if [ -f "$password" ]; then
|
||||
password=$(head -n1 $password)
|
||||
password="$(head -n1 $password)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue