rucaptcha icon indicating copy to clipboard operation
rucaptcha copied to clipboard

Captcha Gem for Rails, which generates captcha image by Rust.

Results 12 rucaptcha issues
Sort by recently updated
recently updated
newest added

This PR adds Ruby 3.0 and 3.1 to the CI matrix.

华顺请教一下,如果验证码我想换成全是数字,不含字母的,应该怎么设置或改代码啊?谢谢

Would enable people to have an option other than using visual feedback. Example libraries with audio captcha include - https://gitee.com/chenhaohan88/captcha - https://github.com/dchest/captcha It is also possible to add sound to...

Hello @huacnlee. I noticed a bug that was produced with the following version: ``` rucaptcha (2.5.3) railties (>= 3.2) ``` After I've integrated rucaptcha for login form, every next visit...

exam : I want transparent backgroup , or need backgroup white or black . or more ? How set ?

版本 ``` ruby 2.5.1 Rails 5.2.1 ``` rucaptcha.rb配置用的 ``` self.cache_store = :file_store ``` 但是在控制器中报错,找不到verify_rucaptcha?这个方法

In development env. rucaptcha_image_tag will render ``` ``` The src attribute include host info. It's ok in local machine. Edge case: in a remote server, just run with development env...

原来是在web里用的图形验证码,使用Grape的接口服务里怎么使用啊?

你好: 我使用了devise,不想将验证码失败的error放在user里,想将注册时字段错误信息和验证码失败信息分开,所以想调用verify_rucaptcha? nil,如下例子: ``` class Users::RegistrationsController < Devise::RegistrationsController def create build_resource(sign_up_params) if verify_rucaptcha? resource.save yield resource if block_given? if resource.persisted? if resource.active_for_authentication? set_flash_message! :notice, :signed_up sign_up(resource_name, resource) respond_with resource, location:...

先在captcha 的索引是通过rucaptcha_sesion_key_key 来存在session 里面的。但是如果是无状态的API 接口的话(移动端),就不太好用了。 像这样把captcha 在存储中的key 返回,就可以支持不用cookie 的API了 ```Ruby def new_generate_rucaptcha res = RuCaptcha.generate() session_val = { code: res[0], time: Time.now.to_i } RuCaptcha.cache.write(rucaptcha_sesion_key_key, session_val, expires_in: RuCaptcha.config.expires_in) opts = {...