Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Unable to authenticate user when doing unit testing
Post: RE: Unable to authenticate user when doing unit te...

Because the endpoint is excluded from the tokens filter in the global routing config. Also I have tried passing a bearer token as a "hack" - it still does not work. It is a bug in Shield.
468 Views
2 Replies
10-03-2024, 10:23 PM
Morph
    Thread: Unable to authenticate user when doing unit testing
Post: Unable to authenticate user when doing unit testin...

I'm building an API with CodeIgniter v4.5.5. I'm also using Shield and using the token based authentication. I can successfully register and login a user through a POST request using a REST clie...
468 Views
2 Replies
10-01-2024, 08:21 AM
Morph
    Thread: Obtain database error message from model
Post: RE: Obtain database error message from model

warcooft Wrote: (09-29-2024, 12:04 PM) -- You can use try and catch, as follows: PHP Code: -- $user  = new User(['username' => 'user', 'email' => '[email protected]', 'password' => 'password']); $m...
426 Views
2 Replies
09-29-2024, 01:23 PM
Morph
    Thread: Obtain database error message from model
Post: Obtain database error message from model

Hello I need to obtain the mysqli_sql_exception message from the database when using a model. For example (doing a manual query): PHP Code: -- $db = Database::connect(); $sql = "SHOW TABLES...
426 Views
2 Replies
09-29-2024, 05:11 AM
Morph

Theme © iAndrew 2016 - Forum software by © MyBB