captcha

How to refresh captcha image on page refresh/load?

[亡魂溺海] 提交于 2019-12-12 08:08:45
问题 I want to force my site to refresh the captcha image everytime it loads, so I have a javascript method triggered with the onload() event. Here I have the following line: document.getElementById('yw0_button').click; Firebug doesn't detect any errors, and for testing purposes I have added an alert right after the displayed line, and the alert pops up each time the page is loaded. However, the image doesn't refresh! This is what I believe is relevant about the view file: <?php if(extension

Change divs twice on different form submissions

ⅰ亾dé卋堺 提交于 2019-12-12 06:31:00
问题 I have a form with radio buttons in div1 and a captcha code to be solved in div2 and another content div3 Once the person checks a radio button in div1 and clicks submit, div1 is replaced by div2 and when a person completes the captcha in div2, I want div2 to be replaced by div3. But, once I am on div2 and complete the captcha, on submit, div1 is shown again with no signs of div3. Any way to achieve that? <?php require_once("solvemedialib.php"); $privkey="My_Private_key"; $hashkey="My_Hash

Notice: Undefined variable: captcha in C:\wamp\projects\ServiceAdmin\login\loginauth.php on line 11

跟風遠走 提交于 2019-12-12 05:38:09
问题 I am currently creating a login script for a project, yet trying to introduce a captcha has proven issues with it; of which I am not entirely certain of. Login page: Form: Form code: <div class="col-lg-8"> <script src="https://www.google.com/recaptcha/api.js"></script> <form class="form-signin" method="post" action="loginauth.php"> <h2 class="form-signin-heading">Sign in to ServiceAdmin</h2><br> <label class="sr-only">Email address</label> <input name="email" type="email" class="form-control"

Pyramid with reCaptcha: how to implement?

╄→гoц情女王★ 提交于 2019-12-12 02:55:14
问题 I want to add the most popular captcha client on my site - reCaptcha. But I didn't found any examples or tutorials in internet... Maybe somebody knows how to do it? I'll be very appreciate for any help!!! 回答1: There is full API documentation available for reCATPCHA here. It probably has sample code, too. I found this by going to the reCAPTCHA website and clicking on the FAQ link. And of course, you sign up for the service here. That's pretty obvious from the home page. 回答2: You need to do two

Yodlee: Unable to convert image codes into captcha in getMFAResponseForSite(Captcha type) - C#

梦想的初衷 提交于 2019-12-12 02:49:35
问题 After adding MFA enabled (captcha type MFA) site accounts through "addSiteAccounts1" API, i have got the response of image codes, which we want to convert into captcha image. I have checked with many scripts to convert but no result. Is there any simple steps to get the image(in C#). Following is the MFA response, { "isMessageAvailable":true, "fieldInfo":{ "responseFieldType":"text", "imageFieldType":"image", "image":[ 66, 77, 58, 116, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 40, 0, 0, 0, -91, 0, 0, 0,

jQuery Validation Plugin - refresh captcha work only once

守給你的承諾、 提交于 2019-12-12 01:06:14
问题 I'm using custom captcha with jQuery Validation Plugin My configuration looks like this: $('#contactform').validate({ onkeyup: function(element, event) { $(element).valid(); }, errorElement: 'span', rules: { contactform_captcha: { minlength: 6, maxlength: 6, required: true, remote: /path/to/captcha-check.php }, }, messages: { contactform_captcha: { required: "No code, no email", minlength: function () { return [ 'Enter at least ' + (6 - parseInt($('#contactform_captcha').val().length)) + '

Captcha uses offline resources

拥有回忆 提交于 2019-12-11 22:01:03
问题 I want to create a CAPTCHA verification of my application, my application is developed using GWT, which not use online resources. I've tried with reCaptcha, but recaptcha have to access the api hosted in the google.com. Is there any ways to make it working in my local network which totally can not access any resource of the internet? thanks 回答1: You can use a local library like SimpleCaptcha. Here an article that explain how to use it with GWT: http://www.javacodegeeks.com/2010/06/add-captcha

Devise add captcha to login page *after* X failed logins

半城伤御伤魂 提交于 2019-12-11 19:39:35
问题 I would like to implement a captcha inside my Devise login form after , X failed login attempts ( say 3 ) Has anyone attempted this? The only idea I have is storing the failed attempts in a session, then after X failed attempts the view login page would be complemented with the captcha This is not failsafe: user can reset session perhaps sessions do not work, which renders this idea useless. Is there a good solid way to do this with Devise? 回答1: You could store the number of attempts for a

PHP Captcha image not displaying in chrome

若如初见. 提交于 2019-12-11 18:41:00
问题 I use PHP for creating a captcha image. It is showing the captcha at the time of loading. After completing the loading, it doesn't show the captcha image in Chrome. In other browsers, it is working fine. Why? <?php // Create an image from button.png $image = imagecreatefrompng('button.png'); // Set the font colour $colour = imagecolorallocate($image, 255, 120, 4); // Set the font $font = '../fonts/Anorexia.ttf'; // Set a random integer for the rotation between -15 and 15 degrees $rotate =

PHP captcha not working

我们两清 提交于 2019-12-11 16:35:27
问题 I'm using Laravel with this package https://github.com/mewebstudio/captcha and for some reason It's not displaying the images. I checked if GD library is installed and enabled and it is. I've also tried this one https://github.com/igoshev/laravel-captcha and same thing happens. I cannot see image on the page and when I inspect the page I can see the URL to the image, but when I click it it's just black. 来源: https://stackoverflow.com/questions/47232432/php-captcha-not-working