Git Product home page Git Product logo

Comments (6)

vdomah avatar vdomah commented on July 21, 2024

Hi,
1st question, please provide more details if you can.

2nd question: you can define your own user model in config by setting env variable:

'model' => env('AUTH_PROVIDERS_USERS_MODEL', '\RainLab\User\Models\User'),

from oc-jwtauth.

snakemastr avatar snakemastr commented on July 21, 2024
  1. I was typing my reply as I noticed that the guard name was empty. If OctoberCMS has a config/auth.php, the auth.php in your plugin is ignored.
    Does this mean my way of installing plugins is wrong or is this desired behaviour? I would think the configs are extending each other, not overriding completely.. I use the backend plugin manager for installation.
    I have now pasted your config in my auth.php and the plugin works as expected! Awesome :-D

  2. Also good to know. One of the used plugins creates customer model on login if no model is present so I have to catch that in case of my own User.

Thank you so much

from oc-jwtauth.

snakemastr avatar snakemastr commented on July 21, 2024

Ah, config/auth.php was added with the recent upgrade to Laravel V6 (Sep 8).

from oc-jwtauth.

vdomah avatar vdomah commented on July 21, 2024

About config/auth.php 1 that surprised me, because I fixed that in past plugin releases. Thanks for pointing that it’s Laravel 6 problem, I’ll investigate

from oc-jwtauth.

beatriznbarroso avatar beatriznbarroso commented on July 21, 2024

Hey @vdomah I just had the same issue with your Plugin version 1.0.12 and Laravel 6, is this part of a new release?

from oc-jwtauth.

sanPuerquitoProgramador avatar sanPuerquitoProgramador commented on July 21, 2024

If you are using WinterCMS you can add the content of oc-jwtauth/config/auth.php inside wintercms/config/auth.php and, considering you are using the Winter version of Users pluging you need to change too


    'providers' => [
        'users' => [
            'driver' => env('AUTH_PROVIDERS_USERS_DRIVER', 'eloquent'),
            'model' => env('AUTH_PROVIDERS_USERS_MODEL', '\RainLab\User\Models\User'),
        ],

for

    'providers' => [
        'users' => [
            'driver' => env('AUTH_PROVIDERS_USERS_DRIVER', 'eloquent'),
            'model' => env('AUTH_PROVIDERS_USERS_MODEL', '\Winter\User\Models\User'),
        ],

from oc-jwtauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.