Skip to content

Bug: Prevent custom user entitiy on some usermodel method #1103

Closed
@MrFrost-Nv27

Description

@MrFrost-Nv27

PHP Version

8.2.1

CodeIgniter4 Version

4.5.1

Shield Version

1.0.3

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MySQL

Did you customize Shield?

Yes, i change some small code on UserModel in returning hardcoded User Entity's Class instead declared return type

What happened?

If we use findByCredentials method on UserModel with email, return Hardcoded User Entity class instead declared return type

  • [ ]

Steps to Reproduce

Some case is in login step, if we use email is returning hardcoded User entity class instead declared return type before saved to the session

Expected Output

we want if we use custom user entity class in our custom model is used on every UserModel Logic

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