bugfix
This commit is contained in:
parent
19d19dd08d
commit
7e218a68a6
@ -39,7 +39,7 @@ where a.id = b.dappid
|
|||||||
"options":{
|
"options":{
|
||||||
"wrap":True,
|
"wrap":True,
|
||||||
"halign":"left",
|
"halign":"left",
|
||||||
"text":f"apikey={r.apikey}"
|
"text":f"apikey={password_decode(r.apikey)}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -47,7 +47,7 @@ where a.id = b.dappid
|
|||||||
"options":{
|
"options":{
|
||||||
"wrap":True,
|
"wrap":True,
|
||||||
"halign":"left",
|
"halign":"left",
|
||||||
"text":f"secretkey={r.secretkey}"
|
"text":f"secretkey={password_decode(r.secretkey)}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -8,7 +8,7 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
"id": params_kw.id,
|
"id": params_kw.id,
|
||||||
"name": params_kw.appname,
|
"name": params_kw.appname,
|
||||||
"description": params_kw.description,
|
"description": params_kw.description,
|
||||||
"secretkey": uuid(),
|
"secretkey": password_encode(uuid()),
|
||||||
"allowedips": params_kw.allowedips,
|
"allowedips": params_kw.allowedips,
|
||||||
"orgid": orgid
|
"orgid": orgid
|
||||||
}
|
}
|
||||||
@ -17,10 +17,10 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
"id": uuid(),
|
"id": uuid(),
|
||||||
"dappid": ns['id'],
|
"dappid": ns['id'],
|
||||||
"userid": userid,
|
"userid": userid,
|
||||||
"apikey": uuid(),
|
"apikey": password_encode(uid()),
|
||||||
"enabled_date": curDateString(),
|
"enabled_date": curDateString(),
|
||||||
"expired_date": '9999-12-31'
|
"expired_date": '9999-12-31'
|
||||||
}
|
}
|
||||||
await sor.C('downapikey', ns1)
|
await sor.C('downapikey', ns1)
|
||||||
return UiMessage(title="create apikey", message=f"appid={ns['id']}, apikey={ns1['apikey']}, secretkey={ns['secretkey']}")
|
return UiMessage(title="create apikey", message=f"apikey created")
|
||||||
return UiError(title='create apikey', message='add apikey error')
|
return UiError(title='create apikey', message='add apikey error')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user