Commit f3b262cf authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Get the expiry date as a unix timestamp, more useful for comparisons on the

PHP side.
parent e46fab77
......@@ -49,8 +49,7 @@ class AuthInternal extends Auth {
* Given a user that we know about, return an array of information about them
public static function get_user_info($username) {
// @todo: only select the information the session requires
$user = get_record('usr', 'username', $username);
$user = get_record('usr', 'username', $username, null, null, null, null, '*, ' . db_format_tsfield('expiry'));
return $user;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment