authlogic
AuthLogic admin user & hide admin links for non-admins
How do have an admin user and how do I hide hype开发者_JAVA百科rlinks for non-admin users?An alternative approach that I use regularly is to have another model called UserGroup.For example:[详细]
2023-02-07 22:27 分类:问答Can't log in with a valid password using Authlogic and Ruby on Rails?
We support a bit of an unusual scheme.We don\'t require a password on User creation, and use password_resets to add a password to the user later, on demand.The problem is, once a password is created,[详细]
2023-02-07 14:59 分类:问答Rails + Authlogic @current_user problem - "Show" method no longer works
I implement开发者_开发知识库ed Authlogic in my rails app which works and tests great. Users can login, logout, etc.[详细]
2023-02-06 15:08 分类:问答How do you tamper AuthLogic to show me the "last" last_login_at?
I would like to code the progress of events that have changed since someone had last logged in. Authlogic provides a last_login_at, but that is the datetime of when the user logged in even though he[详细]
2023-02-06 00:03 分类:问答Problem with validates_uniqueness_of
I\'m using rails 2.3.5 and Authlogic in our website, and I have been getting errors on the database through hoptoad of users with duplicated emails trying to be saved. The problem is, obviously I have[详细]
2023-02-05 17:14 分类:问答What is the best approach to setting up authentication\authorization system for corporate \ single user accounts in Rails?
I\'m setting up a website where I have multiple types of users. For instance consider Amazon or CDW. They have individual accounts, where a regular person can just buy a book or a computer, and they a[详细]
2023-02-04 10:18 分类:问答sync persistence_token across databases
I am trying to figure out how to sync authlogic persistence tokens across servers. I have 4 servers, and I have many apps on all 4, the authentication is working across all the apps on one server.I c[详细]
2023-02-04 01:46 分类:问答How to manually create a new user and user session in Devise?
I have a form where I collect a lot of information in Rails. Part of this form is fields for a new user to register. Since Devise has controllers/actions specifically to create a new user, I don\'t kn[详细]
2023-02-03 21:26 分类:问答Authlogic validation order
guys. I have a problem when doing the authlogic login validation. I have the magical \"active\" field in the user model, say if active is false, when login with correct password, it will pop up the me[详细]
2023-02-03 20:20 分类:问答Rails/Devise changing min length of username
Rails 3.0 Authlogic 2.1.6 Using username (not email) for authentication. Authlogic requi开发者_如何转开发res username to be at least 3 characters.[详细]
2023-02-03 11:19 分类:问答