| HTML :: FormHandlerX :: Form :: login. HTML :: FORMANDLER ·Î±×ÀÎ ¾ç½Ä |
Áö±Ý ´Ù¿î·Îµå |
HTML :: FormHandlerX :: Form :: login. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://karmatics.com/aardvark/
HTML :: FormHandlerX :: Form :: login. ű×
HTML :: FormHandlerX :: Form :: login. ¼³¸í
HTML :: FormHandlerX :: Form :: LoginÀº ¾ç½ÄÀÇ À¯È¿¼ºÀ» °Ë»çÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. ½ÇÁ¦ ÀÎÁõÀ» ¼öÇàÇÏÁö ¾Ê½À´Ï´Ù. ÀÌ´Â ¿©ÀüÈ÷ ¿©ÀüÈ÷ ³²¾Æ ÀÖÁö ¾Ê½À´Ï´Ù. ¾ÏÈ£ º¯°æ, ¾ÏÈ£ º¯°æ ¹× ¾ÏÈ£ Àç¼³Á¤ ¹× Ã˸ſ¡¼ ÀÛ¾÷ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Catalystx :: SimpleLogin.loginÀ» »ìÆ캸½Ê½Ã¿À. À̸ÞÀÏ ¶Ç´Â »ç¿ëÀÚ À̸§ ¸Å°³ º¯¼ö. my $ form = html :: formandlerx :: form :: login-> new (active => ); $ Form-> ÇÁ·Î¼¼½º (params => {email => $ À̸ÞÀÏ, ¾ÏÈ£ => $ password}); ¾ÏÈ£ º¯°æ ... ³» $ form = html :: formandlerx :: form :: login-> new (active = > ); $ form-> ÇÁ·Î¼¼½º (params => {old_password => $ password, password => $ password, confird_password => $ confirm_password,}; ¾ÏÈ£¸¦ ÀØ¾î ¹ö¸®°Å³ª À̸ÞÀÏÀ» È®ÀÎÇϽʽÿÀ. »ç¿ëÀÚ¿¡°Ô À̸ÞÀÏ ÁÖ¼Ò¸¦ È®ÀÎÇϽʽÿÀ. ³» $ form = html :: formandlerx :: form :: login-> new (active => ); $ Form-> ÇÁ·Î¼¼½º (params => {Email => $ À̸ÞÀÏ}); if ($ Form-> À¯È¿¼ºÀÌ °ËÁõ) {$ Form-> token_salt ( 'R4ND0M ¹× PR1V4TE'); MY $ TOKEN = $ Form-> ÅäÅ«; } À̸ÞÀÏ ¸µÅ©¿¡¼ µ¹¾Æ ¿À´Â °æ¿ì ¾ç½ÄÀÌ À¯È¿ ÇÑ °æ¿ì ¾ÏÈ£ Àç¼³Á¤ ¾ç½ÄÀ» Ç¥½ÃÇÕ´Ï´Ù (¼û°ÜÁø ÇÊµå ¶Ç´Â ÄíÅ°¿¡¼ ÅäÅ«À» ÈÞ´ëÇϽʽÿÀ). $ form = html :: formandlerx :: form :: login-> new (active => ; $ ¾ç½Ä -> token_salt ( '¹º°¡ R4ND0M ¹× PR1V4TE'); $ form-> ÇÁ·Î¼¼½º (params => {ÅäÅ« => $ token}); ½ÇÁ¦·Î ¾ÏÈ£¸¦ ½ÇÁ¦·Î Àç¼³Á¤ÇÏ·Á°í ÇÒ ¶§ ... $ form = html :: formandlerx :: form :: login-> new (active => )] $ ¾ç½Ä -> token_salt ( '¹º°¡ R4ND0M ¹× PR1V4TE'); $ Form-> ÇÁ·Î¼¼½º (params => {ÅäÅ« => $ ÅäÅ«, ¾ÏÈ£ => $ password, confirm_password => $ confic_password,}); Á¦Ç°ÀÇ È¨ÆäÀÌÁö
HTML :: FormHandlerX :: Form :: login. °ü·Ã ¼ÒÇÁÆ®¿þ¾î