-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to register on recipya-app.musicavis.ca #436
Comments
I am unable to reproduce this error because I managed to create a new account successfully on recipya-app.musicavis.ca. The error you receive comes from this // internal/server/handlers_auth.go
func (s *Server) registerPostHandler() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
email := r.FormValue("email")
password := r.FormValue("password")
if !regex.Email.MatchString(email) || password != r.FormValue("password-confirm") {
w.Header().Set("HX-Trigger", models.NewErrorFormToast("User might be registered or password invalid.").Render())
w.WriteHeader(http.StatusUnprocessableEntity)
return
}
...
} The order of error checks is as follows once you submit a registration:
Something you could do is the following:
|
Thank you for this great breakdown! |
The problem is now fixed! |
Describe the bug
When trying to register I get the following error:
I can guarantee that these credentials do not exist anywhere else on this application.
I have tried multiple emails and multiple passwords with different configurations.
I also turned off all Firefox Add-Ons and got the same issue.
I have not tried a different browser but can if need be.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
Console log reads as follows:
Let me know if there are any stack traces you would like to see in particular
The text was updated successfully, but these errors were encountered: