mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 11:10:24 +00:00
Using token to instead of user name and password
This commit is contained in:
@@ -157,8 +157,7 @@ sub send_back_comment{
|
||||
}
|
||||
|
||||
print "[send_back_comment] method = $post_method to $post_url \n";
|
||||
`curl -u "$ENV{'USERNAME'}:$ENV{'PASSWORD'}" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`;
|
||||
# `curl -u "denfshuaishuai\@icloud.com:ds18811031107" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`;
|
||||
`curl -v -H "Authorization: token 7333caf3936a938ad0803e7a297423e43f69fb62" -X POST -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`;
|
||||
}
|
||||
|
||||
#--------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user