package templates templ Login(formError string, username string) { @Layout("Login", false) {

Sign in

Don't have an account? Register

Lost access? Recover account

} } templ Register(formError string, username string) { @Layout("Register", false) {

Register

Already have an account? Sign in

} } templ RegistrationRecoveryKey(recoveryKey string) { @Layout("Save recovery key", false) {

Save your recovery key

{ recoveryKey }

If you lose your password, this key is the only way to recover your account without email.

I saved it, continue

} } templ Recover(formError string, username string, recoveryKey string) { @Layout("Recover account", false) {

Recover account

Remembered your password? Sign in

} } templ RecoveryComplete(newRecoveryKey string) { @Layout("Recovery complete", false) {

Account recovered

{ newRecoveryKey }

Replace your old recovery key with this one.

Go to login

} } templ Account(username string, createdAt string, passwordError string, passwordSuccess string, recoveryError string, recoverySuccess string, recoveryKey string) { @Layout("Account", true) {

Account

Change password

Recovery key

To view a new recovery key, confirm your current password. This rotates your old key.

if recoveryKey != "" {

{ recoveryKey }

}

Danger zone

} }