GithubHelp home page GithubHelp logo

Comments (9)

suwardany avatar suwardany commented on May 20, 2024

Hey @paulofreitas

Check out the feature/updates branch.

It will be merged into master today.

Side Note: Groups have been renamed to roles already.

from sentinel.

paulofreitas avatar paulofreitas commented on May 20, 2024

Hey @suwardany, thanks for clarifying that! :)

I've updated my composer.json to use dev-feature/updates for cartalyst/sentinel. I'm still adapting changes, but it looks much nicer now! In the meantime I've already identified a small issue here, but I'll wait the merge to make a PR. 🍻

from sentinel.

suwardany avatar suwardany commented on May 20, 2024

Feel free to PR the feature branch, won't be much time left before a tag is released.

from sentinel.

brunogaspar avatar brunogaspar commented on May 20, 2024

Sentinel is tagged, if you have a PR to send, send to the 1.0 branch.

Thanks.

from sentinel.

paulofreitas avatar paulofreitas commented on May 20, 2024

Yeah, I just noticed it right now, thanks! :)

Let me understand one thing, since it's on topic yet... When I was using Sentry 3.0-dev, Auth::getUser() returned my custom user model I had defined on the package config file. Now it seems to be returning a Cartalyst\Sentinel\Users\EloquentUser instance despite having changed the user model on config, which was successfully migrated to the new Sentinel config file.

Am I missing something? Shouldn't Auth::getUser() return my user model instance in place of Sentinel's EloquentUser model? Cause actually it's breaking all the Auth::getUser()->customUserModelMethod() stuff I use... I'm almost sure I've changed everything that needed to change to migrate to Sentinel.

Thank you in advance!

from sentinel.

brunogaspar avatar brunogaspar commented on May 20, 2024

We'll have a look into it.

from sentinel.

paulofreitas avatar paulofreitas commented on May 20, 2024

I'm still trying to better identify where the issue happens, and I think I get some progress here: sometimes Auth::getUser() correctly returns my custom user model, sometimes it returns a Cartalyst\Sentinel\Users\EloquentUser instance. It seems to happen only on subsequent requests after a successful authentication, thus I think it's related with the new persistence stuff. I'll update here if I get any further details on that. Thanks for all the effort! :)

from sentinel.

suwardany avatar suwardany commented on May 20, 2024

Thanks for the update @paulofreitas .. I'll have a look into it as well today.

from sentinel.

paulofreitas avatar paulofreitas commented on May 20, 2024

Thank YOU for fixing the issue so quickly! I can confirm that all the related issues are gone with that fix, it's all working now! 😃 👍

from sentinel.

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.