customer login: open pw reset link in new tab (Z#23231027) (#6074)

This way customers don't have to break their checkout flow and the link works in a widgets iframe
This commit is contained in:
pajowu
2026-04-10 11:44:36 +02:00
committed by GitHub
parent 0bb04ca8f0
commit e80b4b560b

View File

@@ -83,7 +83,7 @@ class AuthenticationForm(forms.Form):
self.request = request
self.customer_cache = None
super().__init__(*args, **kwargs)
self.fields['password'].help_text = "<a href='{}'>{}</a>".format(
self.fields['password'].help_text = "<a target='_blank' href='{}'>{}</a>".format(
build_absolute_uri(False, 'presale:organizer.customer.resetpw', kwargs={
'organizer': request.organizer.slug,
}),