i am using laravel 5.6 and php 7
as you all know captcha is boring but safe so i want to show captcha to the guest after 5 attempts of login to laravel app
i don't want to use laravel throating
i want to store ip address in data base and when attempts become more than 5 captcha appear
i have make this code
$IPaddress = $_SERVER["REMOTE_ADDR"];
$usser = new Logs;
$usser->ip_address = $IPaddress;
$usser->attempts = $usser->attempts+1;
$useer->save();
i have make the data base with ip and attempts rows and columns
but i don't know where to put this code
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire