Back to JWT Auth API Support

Error API Call after install October cms project on other server

Post a reply
569 views
giuseppe.petagine20183
giuseppe.petagine20183

Hi all, I have an error after install october cms project on other server. (Build 455) When call http://www.mydomain.ext/api/login or other API service with middleware i have this error:

October\Rain\Auth\Models\User and Illuminate\Auth\Authenticatable define the same property ($rememberTokenName) in the composition of Vdomah\JWTAuth\Models\User. However, the definition differs and is considered incompatible. Class was composed

/home/vagrant/code/www.mydomain.ext/plugins/vdomah/jwtauth/models/User.php line 5

Only /api/signup work fine can you help me?

Thanks.

Last updated

giuseppe.petagine20183
giuseppe.petagine20183

/vendor/october/rain/src/Auth/Models/User.php in prev build version did not contain $rememberTokenName property. In 455 build yes.

The problem could be the /plugins/vdomah/jwtauth/models/User.php Class?

Thanks.

vdomah
vdomah

Hello, thanks for the report. I'll check it

giuseppe.petagine20183
giuseppe.petagine20183

Your User Model use \Illuminate\Auth\Authenticatable; /vendor/laravel/framework/src/Illuminate/Auth/Authenticatable.php and /vendor/october/rain/src/Auth/Models/User.php have defined the same property $rememberTokenName.

If I comment one of them it's work. But i don't think it's the best solution...

Sorry for my bad english ;)

planetadeleste
planetadeleste

Any news about this? @giuseppe.petagine20183 did you fix it?

giuseppe.petagine20183
giuseppe.petagine20183

planetadeleste said:

Any news about this? @giuseppe.petagine20183 did you fix it?

I commented out use \Illuminate\Auth\Authenticatable; from /plugins/vdomah/jwtauth/models/User.php

Now it works! ;)

1-6 of 6

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.