1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-02 22:27:30 +02:00

Let 'Auth' access 'createConfirmationRequest' from 'UserManager'

This commit is contained in:
Marco
2017-07-30 19:41:27 +02:00
parent b2e6f68a22
commit 28979925d7

View File

@@ -272,7 +272,7 @@ abstract class UserManager {
* @param callable $callback the function that sends the confirmation email to the user * @param callable $callback the function that sends the confirmation email to the user
* @throws AuthError if an internal problem occurred (do *not* catch) * @throws AuthError if an internal problem occurred (do *not* catch)
*/ */
private function createConfirmationRequest($email, callable $callback) { protected function createConfirmationRequest($email, callable $callback) {
$selector = self::createRandomString(16); $selector = self::createRandomString(16);
$token = self::createRandomString(16); $token = self::createRandomString(16);
$tokenHashed = password_hash($token, PASSWORD_DEFAULT); $tokenHashed = password_hash($token, PASSWORD_DEFAULT);