Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- regist(){
- if ! [ -z "${creds}" ];then
- check_cred "$creds"
- res= $(curl http://localhost/Register/username=$username&password=$password)
- if [ "$?" != "0" ];then
- msg="$(jq -r ".message" <<< "${res}")"
- echo -e "n ------------------------------------nRegistration Error: $msgn"
- exit 1
- else
- echo -e "n ------------------------------------nRegistration Agent: You registered successfully!!n username="${username}"n password="${password}"n"
- fi
- else
- echo "Incorrect credentials!"
- exit 1
- fi
- }
- ./frontend: line 104: $'<html>r': command not found
Add Comment
Please, Sign In to add comment