Hi there! I trying to implement feature of change current user email (https://github.com/delight-im/PHP-Auth#changing-the-current-users-email-address), but code:
`if ($auth->reconfirmPassword($_POST['password'])) {
$auth->changeEmail($_POST['newEmail'], function ($selector, $token) {
echo 'Send ' . $selector . ' and ' . $token . ' to the user (e.g. via email to the new address)';
});
echo 'The change will take effect as soon as the new email address has been confirmed';
}
else {
echo 'We can\'t say if the user is who they claim to be';
}`
Hi there! I trying to implement feature of change current user email (https://github.com/delight-im/PHP-Auth#changing-the-current-users-email-address), but code: `if ($auth->reconfirmPassword($_POST['password'])) { $auth->changeEmail($_POST['newEmail'], function ($selector, $token) { echo 'Send ' . $selector . ' and ' . $token . ' to the user (e.g. via email to the new address)'; });
always return exception «Too many requests».
What i doing wrong?