GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Interchange6::Schema::Result::User(3) User Contributed Perl Documentation Interchange6::Schema::Result::User(3)

Interchange6::Schema::Result::User

Primary key.

The username is automatically converted to lowercase so we make sure that the unique constraint on username works.

Unique nickname for user.

email address.

See 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.

User's first name.

User's last name.

Last login returned as DateTime object. Updated on successful call to "check_password".

Count of failed logins since last successful login. On successful call to "check_password" gets reset to zero but on fail is incremented.

Date and time when "reset_token" expires.

Used to store password reset token.

Boolean denoting an anonymous user. Defaults to 0 (false);

Date and time when this record was created returned as DateTime object. Value is auto-set on insert.

Date and time when this record was last modified returned as DateTime object. Value is auto-set on insert and update.

Is this user account active? Default is yes.

Type: has_many

Related object: Interchange6::Schema::Result::Address

Type: has_many

Related object: Interchange6::Schema::Result::Cart

Type: has_many

Related object: Interchange6::Schema::Result::Order

Type: has_many

Related object: Interchange6::Schema::Result::UserAttribute

Type: has_many

Related object: Interchange6::Schema::Result::UserRole

Type: many_to_many

Composing rels: "user_roles" -> role

Type: has_many

Related object: Interchange6::Schema::Result::Message FK "approved_by_users_id"

Type: has_many

Related object: Interchange6::Schema::Result::Message FK "author_users_id"

Attribute methods are provided by the Interchange6::Schema::Base::Attribute class.

Called during table creation to add indexes on the following columns:
reset_token

Arguments should be a hash of the following key/value pairs:
  • duration => $datetime_duration_hashref

    Value should be a hash reference containing values that can be passed directly to "new" in DateTime::Duration. Passing an undef value to duration will lead to the creation of a reset token that does not expire. Default duration is 24 hours.

  • entropy => $number_of_bits

    The number of bits of entropy to be used by "new" in Session::Token. Defaults to 128.

This method sets "reset_expires" and "reset_token" and returns the value of "reset_token" with checksum added.

Returns 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.

When 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.

Overloaded 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".

Overloaded method. Always add new users to Role with name 'user' unless user has "is_anonymous" set in which case add user to role 'anonymous';

Overloaded method. Check username using "check_username" if supplied.

Die if $username is undef or empty string. Otherwise return "lc($username)"

Returns resultset of messages that are blog posts

Returns "first_name" and "last_name" joined by a single space.

Returns resultset of messages that are reviews.
2016-07-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.