simplecaptcha

PHP GD image not displaying in Chrome

萝らか妹 提交于 2019-12-10 15:18:59
问题 We have used Captcha.php on one of our project, it opens in all browsers but we are not able to view in Google chrome Version 22. Our Captcha script session_start(); $captcha = new SimpleCaptcha(); $captcha->CreateImage(); class SimpleCaptcha { function CreateImage() { header("Content-Type: image/jpeg"); $md5 = md5(rand(0,9999)); $pass = substr($md5, 10, 5); $_SESSION["pass"] = $pass; $image = ImageCreatetruecolor(100, 20); $clr_white = ImageColorAllocate($image, 0, 0, 0); $clr_black =

Heroku Internal server Error logs ImportError: No module named captcha

我与影子孤独终老i 提交于 2019-12-10 11:43:26
问题 Heroku Internal Server Error with django-simple-captcha I installed django simple captcha using > pip install django-simple-captcha and made all the necessary changes in settings.py to get captcha running on my local machine. It was working absolutely fine on my machine But when I deployed it on heroku using: > git push heroku master > > heroku pg:reset > > PGUSER=my_username PGPASSWORD=my_password heroku pg:push local_db HEROKU_DB_NAME --app my_appname I got Internal Server Error on looking

drf 图片/语音验证码

▼魔方 西西 提交于 2019-12-05 23:19:36
drf 集成图片/语音验证码 views 集成 生成url_link (后端重定向到link) base64 png (图片数据, 避免二次请求) urls.py path('code_img', views.CodeImageView.as_view(), name='code_img'), serializers.py class CodeImageSerializer(ModelSerializer): id = serializers.IntegerField(label='id', read_only=True) link = serializers.SerializerMethodField(help_text='img url') image_code_data = serializers.SerializerMethodField( help_text='img base64 png') @staticmethod def get_link(obj): return obj.link @staticmethod def get_image_code_data(obj): return obj.image_code_data class Meta: model = CaptchaStore fields = ['id', 'link', 'image_code

Using selenium to solve captcha

心已入冬 提交于 2019-12-03 23:17:50
问题 My Code below is keep solving a different Captcha ! Please correct my mistake as i don't know what's causing that! from selenium import webdriver from python3_anticaptcha import ImageToTextTask, CallbackClient import time import requests browser = webdriver.Firefox() url = 'https://urlmased.com/' browser.get(url) time.sleep(10) username = browser.find_element_by_id("masked") username.send_keys("testuser") password = browser.find_element_by_id("masked") password.send_keys("testpass") image

DRF 图片/语音验证码

倾然丶 夕夏残阳落幕 提交于 2019-11-29 14:00:44
drf 集成图片/语音验证码 在线图片base64 views 集成 生成url_link (后端重定向到link) base64 png (图片数据, 避免二次请求) urls.py path('code_img', views.CodeImageView.as_view(), name='code_img'), serializers.py class CodeImageSerializer(ModelSerializer): id = serializers.IntegerField(label='id', read_only=True) link = serializers.SerializerMethodField(help_text='img url') image_code_data = serializers.SerializerMethodField( help_text='img base64 png') @staticmethod def get_link(obj): return obj.link @staticmethod def get_image_code_data(obj): return obj.image_code_data class Meta: model = CaptchaStore fields = ['id', 'link',

Recommendations for java captcha libraries [closed]

梦想的初衷 提交于 2019-11-27 17:01:14
I'm looking for a replacement for JCaptcha, which doesn't seem to be maintained any more, and isn't very good to begin with. The replacement has to integrate nicely with JavaEE webapps. As I can see it, there are three options: JCaptcha - No longer maintained, crude API SimpleCaptcha - much nicer API, nicer captchas, but seems to be Java6 only ReCaptcha - easy to use, uses remote web-service to generate captchas, but not much control over look and feel Has anyone used any others, that they'd recommend? Francis ReCaptcha is the only captcha you should use, because it's the only captcha that

Recommendations for java captcha libraries [closed]

喜夏-厌秋 提交于 2019-11-26 18:49:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm looking for a replacement for JCaptcha, which doesn't seem to be maintained any more, and isn't very good to begin with. The