password_verify
host callCapy
function password_verify(password : string, encoded : string) bool
Description
password_verify() tests a password against a stored encoding.
It rejects malformed encodings and parameters above the Bearer limits. Set password length and sign-in rate limits in public handlers.
Parameters
password : the candidate password
encoded : the stored password encoding
Return Values
true when the password matches a valid encoding
Example
Capy
var encoded := password_hash("correct horse battery staple")
print(password_verify("correct horse battery staple", encoded), "\n")