mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
token get
This commit is contained in:
parent
a55fa006c6
commit
fdf2f55c48
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ sleep 25
|
|||
echo "edit nginxproxymanager password..."
|
||||
login_data=$(curl -X POST -H "Content-Type: application/json" -d '{"identity":"admin@example.com","scope":"user", "secret":"changeme"}' http://127.0.0.1:9092/api/tokens)
|
||||
sleep 3
|
||||
token=echo $login_data | grep -Po '(?<="token":")[^"]*'
|
||||
token=$(echo $login_data | grep -Po '(?<="token":")[^"]*')
|
||||
#token=$(echo $login_data | jq -r '.token')
|
||||
new_password=$(docker run --name pwgen backplane/pwgen 15)!
|
||||
docker rm -f pwgen
|
||||
|
|
Loading…
Reference in a new issue