Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Auth model #272

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

oldskool73
Copy link

This simple change makes it possible to use your existing Auth model configured in config/admin.php, so e.g. I'm using :

/*
     * Authentication config
     */
    'auth'                    => [
        'model' => 'App\Models\User',
        'rules' => [
            'email' => 'required',
            'password' => 'required',
        ]
    ],

...which allows my normal users to log in to the admin area. The Sleeping-Owl/AdminAuth stuff is then unused.

Not tested extensively but doesn't seem to be causing any issues here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant