| Mojolicious :: Ç÷¯±×ÀÎ :: reCAPTCHA. Mojolicious Framework ¿ë reCAPTCHA Ç÷¯±×ÀÎ |
Áö±Ý ´Ù¿î·Îµå |
Mojolicious :: Ç÷¯±×ÀÎ :: reCAPTCHA. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Dmitry Konstantinov
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~dmitrynod/
Mojolicious :: Ç÷¯±×ÀÎ :: reCAPTCHA. ű×
Mojolicious :: Ç÷¯±×ÀÎ :: reCAPTCHA. ¼³¸í
mojolicious :: plugin :: recaptcha´Â mojolicious framework¸¦À§ÇÑ recaptcha Ç÷¯±×ÀÎÀÔ´Ï´Ù. ½Ä ³ëÇÁ # mojolicious # mojolicious :: lite plugin recaptcha => {public_key => '', private_key => '...', lang => 'ru' }; # mojolicious $ self-> plugin (recaptcha => {public_key => '...', private_key => '...', lang => 'ru', ssl => 1, # https google urls}); # ÅÛÇø´ <¾ç½Ä action = ""methom = "post"> <% = recaptcha_html %>
# Â÷´Ü ¹æ¹ý $ self- > reCAPTCHA; ($ self-> stash ( 'recaptcha_error')) {# all ok} # ºñ Â÷´Ü ¹æ¹ýÀ» È®ÀÎ $ self-> render_later; $ self-> recaptcha (sub {my $ ok = shift; ($ ok) {} else {recn $ self-> stash ( 'recaptcha_error'°æ°í).} # ¿©±â¿¡¼ ÀüÈ render reduct-> render;}) Á¦Ç° ȨÆäÀÌÁö
Mojolicious :: Ç÷¯±×ÀÎ :: reCAPTCHA. °ü·Ã ¼ÒÇÁÆ®¿þ¾î