A
A
Alexander Interesting2021-06-29 15:40:23
DLE
Alexander Interesting, 2021-06-29 15:40:23

How to hash a password like in DLE?

Everywhere in DLE, passwords are created like this:

$password = $db->safesql( password_hash($password, PASSWORD_DEFAULT) );
. I did the same, but if I write safesql, then I get "Fatal error: Uncaught Error: Call to undefined method mysqli::safesql()", and without it, the passwords do not match.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Interesting, 2021-06-29
@Swimergg

password_verify()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question