mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 06:10:14 +02:00
Let 'Auth' access 'createConfirmationRequest' from 'UserManager'
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user