Logging in sometimes produces the following error. Likely related to updating bcrypt library.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2095, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2080, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/calebwood/Desktop/Rithm/projects/flask-warbler/app.py", line 106, in login
user = User.authenticate(form.username.data,
File "/Users/calebwood/Desktop/Rithm/projects/flask-warbler/models.py", line 165, in authenticate
is_auth = bcrypt.check_password_hash(user.password, password)
File "/usr/local/lib/python3.9/site-packages/flask_bcrypt.py", line 225, in check_password_hash
return hmac.compare_digest(bcrypt.hashpw(password, pw_hash), pw_hash)
File "/usr/local/lib/python3.9/site-packages/bcrypt/init.py", line 105, in hashpw
raise ValueError("Invalid salt")
ValueError: Invalid salt
Logging in sometimes produces the following error. Likely related to updating bcrypt library.
Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2095, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2080, in wsgi_app response = self.handle_exception(e) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/Users/calebwood/Desktop/Rithm/projects/flask-warbler/app.py", line 106, in login user = User.authenticate(form.username.data, File "/Users/calebwood/Desktop/Rithm/projects/flask-warbler/models.py", line 165, in authenticate is_auth = bcrypt.check_password_hash(user.password, password) File "/usr/local/lib/python3.9/site-packages/flask_bcrypt.py", line 225, in check_password_hash return hmac.compare_digest(bcrypt.hashpw(password, pw_hash), pw_hash) File "/usr/local/lib/python3.9/site-packages/bcrypt/init.py", line 105, in hashpw raise ValueError("Invalid salt") ValueError: Invalid salt