Skip to content

Bug: [CI 4.5.0] Time object when savin date (login, user, etc) with MySQLI driver #1086

@nicojmb

Description

@nicojmb

PHP Version

8.1

CodeIgniter4 Version

4.5.0

Shield Version

1.0.2

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

MariaDB 10.5.24

Did you customize Shield?

No

What happened?

In CI 4.5.0 it's forbidden pass an object to save value in MYSQL driver, the value must be a string, located in:

  • UserIdentityModel --> Line 445
  • TokenLoginModel --> Line 38
  • RememberModel -->Line 47 & Line 62
  • LoginModel --> Line 83 & Line 124

*** I think that is more easy fix in CI4 4.5.0 directly adding (string) before value.

Steps to Reproduce

Install CI 4.5.0 and login

Expected Output

Correct login

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions