captcher 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/captcher/captchas_controller.rb +3 -3
- data/lib/captcher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 655e91ab3e9dd90b4f3736f5a65a0159c870c20273b6d9e20a3a9622c08c0847
|
4
|
+
data.tar.gz: e92710d444b0318f60e733187c651dcb074b334dd2e57397cd1380a39729e270
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f6121883bfaa55eaec17c68e8017533d70215e9fbb3d39732db81ebd8b2dfa636e10c6fe0d235379040c353f9f2e68c590f02435cc364e0863269b562e4196c
|
7
|
+
data.tar.gz: 419cb3352bb8770c1e5e0077ba96dfee9162c083c876212773142e95238b240a33f3dbb82d9f28d6547762bdcc7ad9ebffcc9b481e613f632cdf2df42460cdaf
|
@@ -3,16 +3,16 @@ module Captcher
|
|
3
3
|
include Captcher::CaptchaAware
|
4
4
|
|
5
5
|
def show
|
6
|
-
render_captcha(load_captcha
|
6
|
+
render_captcha(load_captcha)
|
7
7
|
end
|
8
8
|
|
9
9
|
def reload
|
10
|
-
render_captcha(reload_captcha
|
10
|
+
render_captcha(reload_captcha)
|
11
11
|
end
|
12
12
|
alias refresh reload
|
13
13
|
|
14
14
|
def confirm
|
15
|
-
if confirm_captcha?(
|
15
|
+
if confirm_captcha?(params[:captcha])
|
16
16
|
render json: { success: true }, status: 200
|
17
17
|
else
|
18
18
|
render json: { success: false }, status: 422
|
data/lib/captcher/version.rb
CHANGED