1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-31 13:20:11 +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
* @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);
$token = self::createRandomString(16);
$tokenHashed = password_hash($token, PASSWORD_DEFAULT);