Update v-check-api-key

This commit is contained in:
myvesta 2021-02-08 18:41:55 +01:00 committed by GitHub
commit 5e6bccb68f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,11 @@ time_n_date=$(date +'%T %F')
time=$(echo "$time_n_date" |cut -f 1 -d \ ) time=$(echo "$time_n_date" |cut -f 1 -d \ )
date=$(echo "$time_n_date" |cut -f 2 -d \ ) date=$(echo "$time_n_date" |cut -f 2 -d \ )
if [[ -z $key || ${#key} -lt 16 ]]; then
echo "Error: not valid keysh"
echo "$date $time api $ip failed to login" >> $VESTA/log/auth.log
exit 9
fi
#----------------------------------------------------------# #----------------------------------------------------------#
# Action # # Action #