Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Jifty-0.71129/plugins/LetMe/lib/Jifty/Plugin/LetMe.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Jifty-0.71129/plugins/LetMe/lib/Jifty/Plugin/LetMe.pm


NAME

Jifty::Plugin::LetMe


DESCRIPTION

Jifty::Plugin::LetMe provides a simple way to enable URLs generated by as_url in the Jifty::LetMe manpage.

When a user follows a URL created by Jifty::LetMe::as_url, Jifty::Plugin::LetMe will check if the URL is valid, and, if so, set request arguments for each of $letme-args>, as well as setting the request argument let_me to the decoded LetMe itself. It will then show the Mason component '/let/' . $letme->path.

By default, we disable all application actions (AppName::Action::*) on LetMe URLs. To disable this behavior, pass the argument DisableActions: 0 to the plugin in your config.yml. It's probably a better idea, however, to only enable specific actions in your own dispatcher, e.g.:


    after plugin 'Jifty::Plugin::LetMe' =>

    before qr'^/let' => run {

        my $let_me = get 'let_me';

        Jifty->api->allow('ConfirmEmail') if $let_me->path eq 'confirm';

    };

If a user tried to access a path under Jifty::LetMe-base_path> with an invalid LetMe, we redirect them to '/error/let_me/invalid_token'.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy