GithubHelp home page GithubHelp logo

Comments (3)

MGatner avatar MGatner commented on July 30, 2024

It's possible this is your configuration. That message appears when restrict() fails to authenticate->check() for a logged in user, at which point it redirects to where you have specified (or default to 'login'). If you're calling restrict() on your redirect (or universally) Auth will think you need to log back in immediately.

If this is a result from using AuthController\Logout and you don't have / restricted, then probably some weird bug. But I'm also not sure if restrict() will continue to exist, so might be moot.

from myth-auth.

fefo-p avatar fefo-p commented on July 30, 2024

Hi, that is definitely the case. There's no public page and index.php is the login page.
As I understand then, the only way to get rid of this message is to have a public page from where to have a link to the login page. Am I right? Can you think of another way?

from myth-auth.

MGatner avatar MGatner commented on July 30, 2024

It’s really a question of how you want your site to work. If you want the whole thing to require a login, then I think your current configuration works (though you may still want an additional page to explain to users what is happening). If there are “public” locations (I.e. don’t require authentication), then I’d do it as you said: make index.php available to anyone and then restrict the other routes you need either with restrict() or via Filters.

from myth-auth.

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.