Fix bug in adding user

This commit is contained in:
Sarina
2024-07-23 00:15:05 +03:30
parent 18468f2cfc
commit ad43a0372c

View File

@ -27,13 +27,13 @@ hysteria2_add_user_handler() {
fi fi
done done
read -p "Enter the traffic limit (in GB): " traffic_gb read -p "Enter the traffic limit (in GB): " traffic_limit_GB
read -p "Enter the expiration days: " expiration_days read -p "Enter the expiration days: " expiration_days
password=$(pwgen -s 32 1) password=$(pwgen -s 32 1)
creation_date=$(date +%Y-%m-%d) creation_date=$(date +%Y-%m-%d)
python3 $CLI_PATH add-user --username "$username" --traffic-limit "$traffic" --expiration-days "$expiration_days" --password "$password" --creation-date "$creation_date" python3 $CLI_PATH add-user --username "$username" --traffic-limit "$traffic_limit_GB" --expiration-days "$expiration_days" --password "$password" --creation-date "$creation_date"
} }
hysteria2_remove_user_handler() { hysteria2_remove_user_handler() {