fix: remove duplicate check
This commit is contained in:
parent
8423578bdd
commit
171b810504
|
@ -408,11 +408,6 @@ func (h *HttpHandler) accountRegister(jc jape.Context) {
|
||||||
|
|
||||||
_, err = rand.Read(passwd)
|
_, err = rand.Read(passwd)
|
||||||
|
|
||||||
if accountExists {
|
|
||||||
errored(errGeneratingPassword)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
newAccount, err := h.accounts.CreateAccount(request.Email, string(passwd))
|
newAccount, err := h.accounts.CreateAccount(request.Email, string(passwd))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errored(errAccountRegisterErr)
|
errored(errAccountRegisterErr)
|
||||||
|
|
Loading…
Reference in New Issue