Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jifty::letme(3pm) [debian man page]

Jifty::LetMe(3pm)					User Contributed Perl Documentation					 Jifty::LetMe(3pm)

NAME
Jifty::LetMe - A way to expose single-link URLs to your applications new Create a new "LetMe" authentication object; it takes no parameters. It calls "_init" to do any initialization. A LetMe is a way to provide a one-time-use URL for a particular purpose. All LetMe objects give you a way to validate a user's identity and to allow them a very small set of possible actions or page-access permissions. For example, you can put a LetMe URL in an email to a new user, so that when they click on the URL you know that their email address is valid. _init @_ Called with whatever "new" was called with. By default, does nothing. user Contains an app-specific "user" object. validated_current_user If the user has presented a valid token, returns an (app-specific subclass of the) Jifty::CurrentUser object for the user who has the email address in $self->email. If no user has that email address, returns undef. _user_from_email ADDRESS Returns an (app-specific subclass of the) Jifty::CurrentUser object for the user who has the email address ADDRESS. generate_checksum Returns an authentication checksum for the current combination of: user path arguments until generate_koremutake_checksum Generate a slightly more pronounceable version of the checksum using String::Koremutake. Due to hex -> integer limitations, this is imprecise and may vary depending on the platform it is used on; as such, it is deprecated. from_token PATH Parse a string of the form mylongusername@example.com/update_task/23/until/20050101/bekidrikufryvagygefuba into email => mylongusername@example.com, path => 'update_task/23' until => 20050101, checksum_provided => bekidrikufryvagygefuba as_token Returns the "letme" token for this set of credentials. This should round trip cleanly with from_token as_encoded_token A variant of as_token that encodes the user's email address suitably for passing in a URL as_url Returns the fully qualified URL for this LetMe. It's composed of Jifty->web->url, "base_path" and "as_encoded_token" base_path By default, all "LetMe" actions live at URLs under '/let' inside your application. Override this subroutine to change that. By default, it returns '/let/' validate Returns true if the credentials the user presented validate OK. Returns false otherwise. _correct_checksum_provided Returns true if the checksum the user provided is correct. Doesn't actually do much input checking. You want to call "validate" perl v5.14.2 2010-12-08 Jifty::LetMe(3pm)

Check Out this Related Man Page

Jifty::Action::Record::Create(3pm)			User Contributed Perl Documentation			Jifty::Action::Record::Create(3pm)

NAME
Jifty::Action::Record::Create - Automagic creation action DESCRIPTION
This class is used as the base class for Jifty::Actions that are merely creating Jifty::Record objects. To use it, subclass it and override the "record_class" method to return the name of the Jifty::Record subclass that this action creates. METHODS
arguments Set the default value in each of the fields to whatever the default of the column is in the model take_action Overrides the virtual "take_action" method on Jifty::Action to call the appropriate "Jifty::Record"'s "create" method when the action is run, thus creating a new object in the database. The "id" of the new row is returned in the "id" content of the Jifty::Result for the action. You can use this in conjunction with request mapping in order to give later parts of the request access to the "id". create_record This method actually performs the call to "record->create". It receives as arguments the parameter hash and should return the message for the user, indicating success or failure. report_success Sets the "message" in Jifty::Result to default success message, "Created". Override this if you want to report some other more user- friendly result. possible_columns Create actions do not provide fields for columns marked as "private" or "protected". _extra_validator_args Passes "for => 'create'" to validators. _extra_canonicalizer_args Passes "for => 'create'" to canonicalizers. _extra_autocompleter_args Passes "for => 'create'" to autocompleters. SEE ALSO
Jifty::Action::Record, Jifty::Record LICENSE
Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. Jifty is distributed under the same terms as Perl itself. perl v5.14.2 2010-12-10 Jifty::Action::Record::Create(3pm)
Man Page