fix: need to check the decoded public key in hex format

This commit is contained in:
Derrick Hammer 2024-01-17 08:47:58 -05:00
parent e31672aad0
commit 224d7a636d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ func (h *HttpHandler) AccountRegister(jc jape.Context) {
return
}
pubkeyExists, _ := h.portal.Accounts().PubkeyExists(request.Pubkey)
pubkeyExists, _ := h.portal.Accounts().PubkeyExists(hex.EncodeToString(decodedKey[1:]))
if pubkeyExists {
errored(errPubkeyAlreadyExists)