Skip to content

VerifyPasswordHash - cWebSessionManagerStandard

Verifies a provided password and hash using the cPasswordHasher class

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
sUserPassword String Existing user password
sEnteredPassword String Entered password
ByRef bShouldUpgrade Boolean

Syntax

Function VerifyPasswordHash String sUserPassword String sEnteredPassword ByRef Boolean bShouldUpgrade Returns Boolean

Call Example

Get VerifyPasswordHash sUserPassword sEnteredPassword bShouldUpgrade to BooleanVariable

Description

Verifies a provided password and hash using the cPasswordHasher class, which is created on phoCrypto.

It returns True if the operation succeeded and the password matches the provided hash.

Return Value

True if successful, otherwise False