Verified Commit 7d9f2ead authored by Oliver Falk's avatar Oliver Falk
Browse files

Fix issue where password isn't set, but the password doesn't only return...

Fix issue where password isn't set, but the password doesn't only return exclamation mark, but also some random string
parent ab0ea07d
Pipeline #2044 passed with stage
in 7 minutes and 20 seconds
......@@ -998,7 +998,7 @@ class PasswordResetView(PasswordResetViewOriginal):
# ResetPasswordView class will silently ignore the password
# reset request
if user:
if not user.password or user.password == '!':
if not user.password or user.password.startswith('!'):
random_pass = User.objects.make_random_password()
user.set_password(random_pass)
user.save()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment