diff --git a/pkg/profile.go b/pkg/profile.go index d2593b7..987bd33 100644 --- a/pkg/profile.go +++ b/pkg/profile.go @@ -29,22 +29,34 @@ func newProfileForm(ctx context.Context, conn *Conn, locale *Locale) *profileFor Label: pgettext("input", "User name", locale), Type: "text", Required: true, + Attributes: []*Attribute{ + {"autocomplete", "name"}, + }, }, Email: &InputField{ Name: "email", Label: pgettext("input", "Email", locale), Type: "email", Required: true, + Attributes: []*Attribute{ + {"autocomplete", "username"}, + }, }, Password: &InputField{ Name: "password", Label: pgettext("input", "Password", locale), Type: "password", + Attributes: []*Attribute{ + {"autocomplete", "new-password"}, + }, }, PasswordConfirm: &InputField{ Name: "password_confirm", Label: pgettext("input", "Password Confirmation", locale), Type: "password", + Attributes: []*Attribute{ + {"autocomplete", "new-password"}, + }, }, Language: &SelectField{ Name: "language",