Posts

Showing posts from December, 2022

ReCAPTCHA V3 Kullanımı

 https://github.com/biscolab/laravel-recaptcha https://artisansweb.net/a-guide-on-adding-google-recaptcha-v3-to-your-laravel-website/ <head> < meta name = "csrf-token" content = "{{ csrf_token() }}" > < script type = "text/javascript" >     function callbackThen ( response ) {         // read Promise object         response . json (). then ( function ( data ) {             console . log ( data );             if ( data . success && data . score > 0.5 ) {                 console . log ( 'valid recpatcha' );             } else {                 document . getElementById ( 'co-sign-in-form' ). addEventListener ( 'submit' , function ( event ) {                     event . preventDefault ();                     //alert('recpatcha error');                     toastr . error ( "Recpatcha error" )                 });             }         });     }     function callbackCatch ( error )