print error when user exists

This commit is contained in:
Aaron Bieber 2024-03-31 14:50:23 -06:00
parent a33f5e0132
commit 5876edbb07
No known key found for this signature in database

View File

@ -172,7 +172,7 @@ func main() {
if err != nil {
d.Set(u.Key(), u.Password)
} else {
log.Println("user exists")
log.Println("user exists", err)
http.Error(w, "Username is already registered", http.StatusPaymentRequired)
return
}