func (u *User) updateConfirmPassword(event js.Value) {
	password1InputElement := event.Get("target")
	password2InputElement := password1InputElement.
		Get("parentElement").
		Get("nextElementSibling").
		Get("lastElementChild")
	password1Value := password1InputElement.Get("value").String()
	passwordRegex := u.escapePassword(password1Value)
	password2InputElement.Set("pattern", passwordRegex)
}
// updateConfirmPassword updates the pattern of the password confirm input to expect the content of the password input.
updateConfirmPassword updates the pattern of the password confirm input to expect the content of the password input.
// updateConfirmPassword updates the pattern of the password confirm input to expect the content of the password input .
func (u *User) updateConfirmPassword(event js.Value) {
	password1InputElement := event.Get("target")
	password2InputElement := password1InputElement.
		Get("parentElement").
		Get("nextElementSibling").
		Get("lastElementChild")
	password1Value := password1InputElement.Get("value").String()
	passwordRegex := u.escapePassword(password1Value)
	password2InputElement.Set("pattern", passwordRegex)
}
func ( u * User ) updateConfirmPassword ( event js . Value ) { password1InputElement := event . Get ( " " ) password2InputElement := password1InputElement . Get ( " " ) . Get ( " " ) . Get ( " " ) password1Value := password1InputElement . Get ( " " ) . String ( ) passwordRegex := u . escapePassword ( password1Value ) password2InputElement . Set ( " " , passwordRegex ) }
updateConfirmPassword updates the pattern of the password confirm input to expect the content of the password input.
updateConfirmPassword updates the pattern of the password confirm input to expect the content of the password input .