check this - normalize pubkey

This commit is contained in:
padreug 2025-10-15 01:13:30 +02:00 committed by Patrick Mulligan
parent 26fcf50462
commit 7075abdbbd

View file

@ -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,