hash_equals fails when no stored hash is available

Created on 28 September 2023, 9 months ago

Problem/Motivation

In \Drupal\user_hash\Services::validateHash we call hash_equals with one value being the stored hash for the given user. That value could be NULL, then this function fails.

Proposed resolution

Assert the stored value first.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024