Coder Social home page Coder Social logo

Comments (8)

GBH avatar GBH commented on August 24, 2024

I think the problem is that you cannot access current_user method from CMS admin controller (it doesn't inherit from ApplicationController, not sure why at the moment). So you need you rely on instance variable @current_user instead.

from comfortable-mexican-sofa.

jayandra avatar jayandra commented on August 24, 2024

Could you please add a "log out" link in the admin view of the gem when the user has logged in through HttpAuth. Is it already there and i am missing it, or is it a bug?

I am sure the "logout" link will be of great help for everybody. At present we can log in at "http://www.some-domain.com/cms-admin", but there is no "logout" feature within the admin-view. To logout i have been clearing "active logins" in my firefox browser.

from comfortable-mexican-sofa.

jayandra avatar jayandra commented on August 24, 2024

As you suggested, i used session variable session[:current_user] insted of current_user method and things starting working as expected. Thank you very much for your help.

I would like to re-request you to implement "log-out" link in admin view when logged in through HttpAuth. I am sure it will be very much helpful for all users.

from comfortable-mexican-sofa.

jayandra avatar jayandra commented on August 24, 2024

As you suggested, i used session variable session[:current_user] insted of current_user method and things starting working as expected. Thank you very much for your help.

I would like to re-request you to implement "log-out" link in admin view when logged in through HttpAuth. I am sure it will be very much helpful for all users.

from comfortable-mexican-sofa.

GBH avatar GBH commented on August 24, 2024

HTTP basic auth doesn't have a conventional 'log-out' but I'll take a look.

from comfortable-mexican-sofa.

heftyashish avatar heftyashish commented on August 24, 2024

Hi Oleg,

I have integrated Comfortable mexican sofa with my application. I'm really liking it so far. However,
I fail to see any link for logout. Is it possible to log-out from the CMS.
Thanks in Advance.

from comfortable-mexican-sofa.

awoodworth avatar awoodworth commented on August 24, 2024

Ashish,

Depending upon the type of authentication that you are using, you could just alter the view of the CMS with a link to destroy the session.

from comfortable-mexican-sofa.

heftyashish avatar heftyashish commented on August 24, 2024

Thanks awoodworth, I used existing authentication for admin. That worked for me.

from comfortable-mexican-sofa.

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.