We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
验证码验证时候,如果没有调用发送验证时接口,直接调用登录认证接口,verify_code验证会报未定义attempts错误. 此情况是在'非正常使用'的情况下会发生.
The text was updated successfully, but these errors were encountered:
你可以自己在validations.php中修改Validator::extend('verify_code', function ($attribute, $value)函数,来解决这个问题~~ Validator::extend('verify_code', function ($attribute, $value) { $state = SmsManager::retrieveState(); if($state==[]) return false; $maxAttempts = config('laravel-sms.verifyCode.maxAttempts', 0); $attempts = $state['attempts'] + 1; .....
Validator::extend('verify_code', function ($attribute, $value) {
$state = SmsManager::retrieveState();
if($state==[])
return false;
$maxAttempts = config('laravel-sms.verifyCode.maxAttempts', 0);
$attempts = $state['attempts'] + 1;
.....
Sorry, something went wrong.
该问题同 #114
No branches or pull requests
验证码验证时候,如果没有调用发送验证时接口,直接调用登录认证接口,verify_code验证会报未定义attempts错误.
此情况是在'非正常使用'的情况下会发生.
The text was updated successfully, but these errors were encountered: