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

Sign in

Enter your credentials to continue.

if formError != "" { }

Don't have an account? Register

Lost access? Recover account

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

Register

Create a new account to track anime.

Password must be at least 12 characters and include an uppercase letter, lowercase letter, number, and special character.

if formError != "" { }

Already have an account? Sign in

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

Save your recovery key

Store this key somewhere safe. It is shown only once.

{ 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

Enter your username, recovery key, and a new password.

if formError != "" { }

Remembered your password? Sign in

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

Account recovered

Your password was reset and your recovery key was rotated.

{ 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("mal - account", true) {

Account

Email / Username { username }
Created { createdAt }

Change password

if passwordError != "" { } if passwordSuccess != "" {

{ passwordSuccess }

}

Recovery key

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

if recoveryError != "" { } if recoverySuccess != "" {

{ recoverySuccess }

}
if recoveryKey != "" {

{ recoveryKey }

}

Danger zone

} }