From 95e5a74b0663e9110ea638dd5d809e9fd1541fa9 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 25 Oct 2016 16:08:14 +0200 Subject: * model for user auth cookies --- app/frontend/model/UserAuthKey.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/frontend/model/UserAuthKey.php (limited to 'app/frontend/model/UserAuthKey.php') diff --git a/app/frontend/model/UserAuthKey.php b/app/frontend/model/UserAuthKey.php new file mode 100644 index 0000000..64d9e65 --- /dev/null +++ b/app/frontend/model/UserAuthKey.php @@ -0,0 +1,33 @@ + 'ID', + 'auth_key' => 'AuthKey', + 'ip_address' => 'IPAddress', + '_user' => 'UserID' + ]; + + public static $RELATIONS = [ + 'User' => [self::BELONGS_TO, 'User', '_user'] + ]; + + public static function finder($className=__CLASS__) { + return parent::finder($className); + } + +} + +?> -- cgit v1.2.3