Add separate production, testserver, and demo deployments
CI / test (push) Failing after 10s

This commit is contained in:
2026-09-14 19:58:31 +02:00
parent b87aa0aa17
commit d06ff4a94a
37 changed files with 1293 additions and 121 deletions
+4
View File
@@ -83,6 +83,10 @@ func (app *application) createPasswordResetTokenHandler(w http.ResponseWriter, r
app.failedValidationResponse(w, r, v.Errors)
return
}
if app.isProtectedDemoAccount(input.Email) {
app.demoAccountProtectedResponse(w, r)
return
}
user, err := app.models.Users.GetByEmail(input.Email)
if err != nil {