|
NAMEInterchange6::Schema::Result::UserACCESSORSusers_idPrimary key.usernameThe username is automatically converted to lowercase so we make sure that the unique constraint on username works.nicknameUnique nickname for user.passwordSee DBIx::Class::PassphraseColumn and its dependency Authen::Passphrase for full details of supported password encodings.New/changed passwords are currently encoded using Authen::Passphrase::BlowfishCrypt using 2^14 rounds and random salt. Check password method is "check_password". Default value is '{CRYPT}*' which causes "check_password" to fail. first_nameUser's first name.last_nameUser's last name.last_loginLast login returned as DateTime object. Updated on successful call to "check_password".fail_countCount of failed logins since last successful login. On successful call to "check_password" gets reset to zero but on fail is incremented.reset_expiresDate and time when "reset_token" expires.reset_tokenUsed to store password reset token.is_anonymousBoolean denoting an anonymous user. Defaults to 0 (false);createdDate and time when this record was created returned as DateTime object. Value is auto-set on insert.last_modifiedDate and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.activeIs this user account active? Default is yes.RELATIONSaddressesType: has_manyRelated object: Interchange6::Schema::Result::Address cartsType: has_manyRelated object: Interchange6::Schema::Result::Cart ordersType: has_manyRelated object: Interchange6::Schema::Result::Order user_attributesType: has_manyRelated object: Interchange6::Schema::Result::UserAttribute user_rolesType: has_manyRelated object: Interchange6::Schema::Result::UserRole rolesType: many_to_manyComposing rels: "user_roles" -> role approvalsType: has_manyRelated object: Interchange6::Schema::Result::Message FK "approved_by_users_id" messagesType: has_manyRelated object: Interchange6::Schema::Result::Message FK "author_users_id" METHODSAttribute methods are provided by the Interchange6::Schema::Base::Attribute class.sqlt_deploy_hookCalled during table creation to add indexes on the following columns:
reset_token_generate( %args );Arguments should be a hash of the following key/value pairs:
This method sets "reset_expires" and "reset_token" and returns the value of "reset_token" with checksum added. reset_token_checksumReturns the checksum for the token stored in "reset_token".Checksum is a digest of "password", "reset_token" and "reset_expires" (if this is defined). This ensures that a reset token is not valid if password has changed or if a newer token has been generated. reset_token_verifyWhen passed combined token and checksum as argument returns 1 if token and checksum are correct and "reset_expires" is not in the past (if it is defined). Returns 0 on failure.newOverloaded method.If "username" is undefined and "is_anonymous" is defined then create a unique username for this anonymous user and set "active" to false. Otherwise check username using "check_username". insertOverloaded method. Always add new users to Role with name 'user' unless user has "is_anonymous" set in which case add user to role 'anonymous';updateOverloaded method. Check username using "check_username" if supplied.check_username( $username )Die if $username is undef or empty string. Otherwise return "lc($username)"blog_postsReturns resultset of messages that are blog postsnameReturns "first_name" and "last_name" joined by a single space.reviewsReturns resultset of messages that are reviews.
Visit the GSP FreeBSD Man Page Interface. |