public static function getByKey($sessionKey) { return LoginSession::where('session_key', $sessionKey)->first(); }
public function postValidate() { list($sessionKey) = ColdValidator::instance()->inputs(array('session_key')); return array('status' => LoginSession::where('session_key', $sessionKey)->count() > 0); }