Added user registration

This commit is contained in:
2025-02-14 18:49:46 +11:00
parent 5c8bec0ad2
commit 5616b8a248
11 changed files with 405 additions and 44 deletions

View File

@@ -8,11 +8,9 @@ import "fmt"
// error icons on the username and password field
templ LoginForm(loginError string) {
{{
var errCreds string
errCreds := "false"
if loginError == "Username or password incorrect" {
errCreds = "true"
} else {
errCreds = "false"
}
xdata := fmt.Sprintf(
"{credentialError: %s, errorMessage: '%s'}",