nginx token type error edit

This commit is contained in:
qiaofeng1227 2023-06-30 14:25:52 +08:00
parent 9ba5067ae6
commit 06f3bda574
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py database.sqlite ./
RUN apt update
# Install supervisord
# Install supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View file

@ -1113,9 +1113,9 @@ def check_real_domain(domain):
def get_token():
url = const.NGINX_URL+"/api/tokens"
headers = {'Content-type': 'application/json'}
password = db.AppSearchUsers("nginx").json()["password"]
password = db.AppSearchUsers("nginx").get("password")
myLogger.info_logger(password)
myLogger.info_logger("token_password: " + password)
param = {
"identity": "help@websoft9.com",
"scope": "user",