fix: CreateAccount needs a verify email argument

This commit is contained in:
Derrick Hammer 2024-02-26 08:23:53 -05:00
parent 88ef43acaa
commit b270d6f414
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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