Search code examples
codeigniterion-auth

ion_auth library syntax error, unexpected ','


i am using ion auth library in codeigniter when i integrated it and accessing from localhost it showing me error as mentioned in image. enter image description here

when i opened the library code line 141 the code is:

$user = $this->where($identifier, 'ion_auth'), $identity)->where('active', 1)->users()->row();  //changed to get_user_by_identity from email

now my question is the ) symbol after 'ion_auth' is ok or wrong? when i removes this library code works fine.


Solution

  • this issue was exist when i downloaded library but later after mentioning here Ben Edmunds has updated code and now the correct code is

    $user = $this->where($identifier, $identity)->where('active', 1)->users()->row(); 
    

    at line 141 which is working for me.