fix: CreateAccount needs a verify email argument
This commit is contained in:
parent
88ef43acaa
commit
b270d6f414
|
@ -118,7 +118,7 @@ func (a AccountAPI) register(jc jape.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
user, err := a.accounts.CreateAccount(request.Email, request.Password)
|
user, err := a.accounts.CreateAccount(request.Email, request.Password, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = jc.Error(err, http.StatusUnauthorized)
|
_ = jc.Error(err, http.StatusUnauthorized)
|
||||||
a.logger.Error("failed to update account name", zap.Error(err))
|
a.logger.Error("failed to update account name", zap.Error(err))
|
||||||
|
|
Loading…
Reference in New Issue