package components import ( "context" "strings" ) templ Login(ctx context.Context, errorMessage string, hasExternalProviders bool) { @LayoutWithContext("Login", ctx) {

Sign In

Access your GoMFT account

if errorMessage != "" { if strings.HasPrefix(errorMessage, "Password reset") || strings.Contains(errorMessage, "success") { } else { } }
Forgot password?

Contact an administrator to create an account

if hasExternalProviders {

Or sign in with:

}
Secure, encrypted connection
} }