{"action":"created","issue":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/777","labels_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/777/labels{/name}","comments_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/777/comments","events_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/777/events","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/777","id":80392204,"number":777,"title":"Credentials Checking function","user":{"login":"sahanDissanayake","id":5580680,"avatar_url":"https://avatars.githubusercontent.com/u/5580680?v=3","gravatar_id":"","url":"https://api.github.com/users/sahanDissanayake","html_url":"https://github.com/sahanDissanayake","followers_url":"https://api.github.com/users/sahanDissanayake/followers","following_url":"https://api.github.com/users/sahanDissanayake/following{/other_user}","gists_url":"https://api.github.com/users/sahanDissanayake/gists{/gist_id}","starred_url":"https://api.github.com/users/sahanDissanayake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahanDissanayake/subscriptions","organizations_url":"https://api.github.com/users/sahanDissanayake/orgs","repos_url":"https://api.github.com/users/sahanDissanayake/repos","events_url":"https://api.github.com/users/sahanDissanayake/events{/privacy}","received_events_url":"https://api.github.com/users/sahanDissanayake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T05:00:18Z","updated_at":"2015-05-25T05:05:23Z","closed_at":null,"body":"Hi @benedmunds \r\n\r\nI know that there is a ion-auth->user() function, My question is is there another function where I can see if the currently logged in user in logged in with proper credentials ?\r\n\r\nBecause some users could pass in a user id as a session variable or cookie and get access if I do not check the credentials,,\r\n\r\nAny thoughts would be much appreciated. \r\n\r\nCheers "},"comment":{"url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/comments/105127264","html_url":"https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/777#issuecomment-105127264","issue_url":"https://api.github.com/repos/benedmunds/CodeIgniter-Ion-Auth/issues/777","id":105127264,"user":{"login":"sahanDissanayake","id":5580680,"avatar_url":"https://avatars.githubusercontent.com/u/5580680?v=3","gravatar_id":"","url":"https://api.github.com/users/sahanDissanayake","html_url":"https://github.com/sahanDissanayake","followers_url":"https://api.github.com/users/sahanDissanayake/followers","following_url":"https://api.github.com/users/sahanDissanayake/following{/other_user}","gists_url":"https://api.github.com/users/sahanDissanayake/gists{/gist_id}","starred_url":"https://api.github.com/users/sahanDissanayake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahanDissanayake/subscriptions","organizations_url":"https://api.github.com/users/sahanDissanayake/orgs","repos_url":"https://api.github.com/users/sahanDissanayake/repos","events_url":"https://api.github.com/users/sahanDissanayake/events{/privacy}","received_events_url":"https://api.github.com/users/sahanDissanayake/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T05:05:23Z","updated_at":"2015-05-25T05:05:23Z","body":"My end goal is to have policy, so that every admin request will go through something similar to \r\n```javascript \r\n$this -> ion_auth -> is_reallly_loggedin()\r\n``\r\n\r\nWhich will check the session or cookies and the id against the DB and return true or false"}}