fix: need to check the decoded public key in hex format
This commit is contained in:
parent
e31672aad0
commit
224d7a636d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue