Comments (6)
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:
Line 62 in 3b98fc1
from oc-jwtauth.
-
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 -
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.
Ah, config/auth.php was added with the recent upgrade to Laravel V6 (Sep 8).
from oc-jwtauth.
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.
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.
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)
- Missing argument for AuthManager::createDriver(), HOT 1
- /refresh and /invalidate removed ? HOT 2
- change secret HOT 1
- Middleware \Tymon\JWTAuth\Middleware\GetUserFromToken not working
- How to retrieve the User session after login HOT 2
- have an error when i update system version 443 to 446
- Auth crashing because of different declarations of $rememberTokenName HOT 2
- php artisan jwt:generate does not work HOT 3
- Always get invalid_credentials HOT 1
- How do I change the error key and value?
- { "error": "token_not_provided" } with OC v2 HOT 2
- Can we use Backend user and Rainlab user both? HOT 1
- php artisan jwt:generate not working HOT 1
- JWTAuth not found HOT 1
- add others data in the reponse HOT 1
- 500 error on /api/login HOT 3
- Login other than email
- Class jwt.auth does not exist HOT 2
- $isHidden causing an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oc-jwtauth.