Comments (8)
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.
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.
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.
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.
HTTP basic auth doesn't have a conventional 'log-out' but I'll take a look.
from comfortable-mexican-sofa.
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.
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.
Thanks awoodworth, I used existing authentication for admin. That worked for me.
from comfortable-mexican-sofa.
Related Issues (20)
- 'around action' breaking admin CMS HOT 1
- Passwords cannot be changed by admin users [Bug?] HOT 1
- Feature Request: Work with UUID ID column...
- ERB exposed in JSON response but not HTML HOT 1
- Documentation on Hostname Aliases Unclear
- render cms_layout throws ActionView::MissingTemplate HOT 1
- Wysiwyg file chooser pagination
- undefined method `service_name' for #<ActiveStorage::Blob:0x00007fa1d3eec970> HOT 2
- Rails 6.1 Active Storage's ImageProcessing transformer doesn't support :combine_options HOT 4
- Rails 6.1: support ActiveStorage::Blob#service_name
- Pages index page performance issues
- How to migrate JS and CSS code from 1.x to 2.0
- cms_site_detect fails if request is nil
- Any Updates? HOT 1
- Redirect to 404 page on page not found
- Ruby 3 Support HOT 4
- Content does not get rendered in the layout
- Adding a new Category from the Pages admin view results in an error
- CodeMirror style is broken
- Support for Rails 7? Any maintainers needed? HOT 8
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 comfortable-mexican-sofa.