mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Update v-check-api-key
This commit is contained in:
parent
19ca71e8fb
commit
5e6bccb68f
1 changed files with 5 additions and 0 deletions
|
@ -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 #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue