check this - normalize pubkey
This commit is contained in:
parent
26fcf50462
commit
7075abdbbd
1 changed files with 3 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ async def api_create_user(data: CreateUser) -> CreateUser:
|
|||
data.extra = data.extra or UserExtra()
|
||||
data.extra.provider = data.extra.provider or "lnbits"
|
||||
|
||||
if data.pubkey:
|
||||
data.pubkey = normalize_public_key(data.pubkey)
|
||||
|
||||
account = Account(
|
||||
id=uuid4().hex,
|
||||
username=data.username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue