forked from CGM_Public/pretix_original
Update redis requirement from ==7.4.* to ==8.0.* (#6226)
* Update redis requirement from ==7.4.* to ==8.0.* Updates the requirements on [redis](https://github.com/redis/redis-py) to permit the latest version. - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v7.4.0...v8.0.0) --- updated-dependencies: - dependency-name: redis dependency-version: 8.0.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Remove setex calls * Update src/pretix/presale/views/user.py Co-authored-by: luelista <weller@rami.io> * Fix tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raphael Michel <michel@pretix.eu> Co-authored-by: Raphael Michel <michel@rami.io> Co-authored-by: luelista <weller@rami.io>
This commit is contained in:
co-authored by
luelista
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Raphael Michel
Raphael Michel
parent
1ee1c604cf
commit
005b3864b1
@@ -330,7 +330,7 @@ class Forgot(TemplateView):
|
||||
user.log_action('pretix.control.auth.user.forgot_password.denied.repeated')
|
||||
raise RepeatedResetDenied()
|
||||
else:
|
||||
rc.setex('pretix_pwreset_%s' % (user.id), 3600 * 24, '1')
|
||||
rc.set('pretix_pwreset_%s' % (user.id), '1', ex=3600 * 24)
|
||||
|
||||
except User.DoesNotExist:
|
||||
logger.warning('Backend password reset for unregistered e-mail \"' + email + '\" requested.')
|
||||
|
||||
Reference in New Issue
Block a user