Datacenter build and management service
Conch::DB::ResultSet::UserSessionToken
Interface to queries against the ‘user_session_token’ table.
Chainable resultset to limit results to those that are expired.
Chainable resultset to limit results to session tokens that are not expired.
Chainable resultset to limit results to those that aren’t expired.
Chainable resultset to search for matching tokens. This does *not* check the expires field: chain with ‘unexpired’ if this is desired.
Chainable resultset to search for login tokens (created via the main /login flow).
Chainable resultset to search for api tokens (NOT created via the main /login flow).
Update all matching rows by setting expires = now(). (Returns the number of rows updated.)
Generates a session token for the user and stores it in the database. ‘expires’ is an epoch time.
Returns the db row inserted, and the token string that we generated.
Copyright Joyent, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.