mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fixed incorrect redirect in resend_link
This commit is contained in:
@@ -32,7 +32,7 @@ class ResendLinkView(EventViewMixin, TemplateView):
|
||||
rc = get_redis_connection("redis")
|
||||
if rc.exists('pretix_resend_{}'.format(user)):
|
||||
messages.error(request, _('We already sent you an email in the last 24 hours.'))
|
||||
return redirect('presale:user.resend')
|
||||
return redirect(eventreverse(self.request.event, 'presale:event.resend_link'))
|
||||
else:
|
||||
rc.setex('pretix_resend_{}'.format(user), 3600 * 24, '1')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user