Skip to content

Bug: Typo in JWT docs #731

@AndrewDFrazier-SwofMedia

Description

PHP Version

8.1.1

CodeIgniter4 Version

4.3.4

Shield Version

v1.0.0-beta.6

Which operating systems have you tested for this bug?

Windows

Which server did you use?

apache

Database

MySQL 8

Did you customize Shield?

Yes; used the sample controller from JWT docs: docs/addons/jwt.md

What happened?

There's a typo causing a crash: in the line 'rules' => 'required|' . Passwords::getMaxLenghtRule(),

The error is Call to undefined method CodeIgniter\Shield\Authentication\Passwords::getMaxLenghtRule()

the line should read Passwords::getMaxLengthRule()

Steps to Reproduce

Try using the sample controller

Expected Output

I expect a JWT token to be returned.

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