toplan / laravel-sms

:iphone::heavy_check_mark:A phone number validation solution based on laravel
MIT License
838 stars 172 forks source link

bug in `verify_code` #114

Closed toplan closed 7 years ago

toplan commented 8 years ago

https://github.com/toplan/laravel-sms/blob/master/src/Toplan/LaravelSms/validations.php#L16

toplan commented 8 years ago

当用户未点击发送短信按钮时,直接点击提交,这个时候因为没有存储状态到session/cache,那么这里获取attempts肯定会报异常。