Reword register home link to login link

This commit is contained in:
Teajey 2025-12-16 00:23:13 +09:00
parent 07313fbda4
commit f945e9eb0f
Signed by: Teajey
GPG Key ID: 970E790FE834A713

View File

@ -45,7 +45,12 @@ func (p *RegisterForm) Validate() (valid bool) {
func NewRegister(usernameVal, passwordVal, confirmPassVal string) *Register {
return &Register{
Nav: templates.DefaultNavCollapse(),
Nav: templates.NavCollapse{
Links: []htmlx.Link{{
Name: "Login",
Href: "/",
}},
},
Error: "",
Warning: template.HTML(`<p>Your password will be stored in a safe, responsible manner; but don't trust my programming skills!</p><p class="mb-0">Maybe use a password here that you don't use for important things...</p>`),
Form: htmlx.Form[RegisterForm]{