diff options
Diffstat (limited to 'api/handlers.go')
| -rw-r--r-- | api/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/handlers.go b/api/handlers.go index 109eca3..7918b40 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -79,7 +79,7 @@ func (h *Handler) Register(w http.ResponseWriter, r *http.Request) { return } - acct, err := h.db.CreateAccount(ctx, req.Username, req.Password) + acct, err := h.db.Register(ctx, req.Username, req.Password) if err != nil { if err.Error() == "username already exists" { badRequest(w, "username already exists") |
