Skip to content

Change password verification to SHA-256 hashing#80

Open
jimbojef wants to merge 1 commit intosciguy14:mainfrom
jimbojef:patch-1
Open

Change password verification to SHA-256 hashing#80
jimbojef wants to merge 1 commit intosciguy14:mainfrom
jimbojef:patch-1

Conversation

@jimbojef
Copy link

Replaced password verification method with SHA-256 hash comparison. Fixed authentication bug.

Replaced password_verify() with direct SHA-256 hash comparison: hash("sha256", $_POST['password']) === $APPROVED_HASH

The previous implementation always failed because $APPROVED_HASH contains a SHA-256 hash, not a password_hash() value.

Replaced password verification method with SHA-256 hash comparison. 
Fixed authentication bug.

Replaced password_verify() with direct SHA-256 hash comparison:
hash("sha256", $_POST['password']) === $APPROVED_HASH

The previous implementation always failed because $APPROVED_HASH
contains a SHA-256 hash, not a password_hash() value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant