This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit dbe94eb95990111bf7fc7f487b370f1c22df3962
tree 318a7a46de10afc605937740420c5ef1cdafd2b3
parent 49540ab400cd4a787b9a87a3c2f6c50cf19b6b9d
tree 318a7a46de10afc605937740420c5ef1cdafd2b3
parent 49540ab400cd4a787b9a87a3c2f6c50cf19b6b9d
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri May 08 08:50:02 -0700 2009 | |
| |
README.md | Thu May 14 13:16:05 -0700 2009 | |
| |
Rakefile | Fri May 08 08:50:02 -0700 2009 | |
| |
app/ | Thu May 14 13:16:05 -0700 2009 | |
| |
config/ | Thu May 14 13:16:05 -0700 2009 | |
| |
db/ | Thu May 14 13:16:05 -0700 2009 | |
| |
init.rb | Fri May 08 14:18:46 -0700 2009 | |
| |
install.rb | Fri May 08 08:50:02 -0700 2009 | |
| |
lib/ | Thu May 14 13:16:05 -0700 2009 | |
| |
spec/ | Thu May 14 13:18:56 -0700 2009 | |
| |
uninstall.rb | Fri May 08 08:50:02 -0700 2009 |
README.md
Authlogic Engine
A simple engines-based wrapper for Authlogic. Provides basic models, controllers, routing and specs for RESTfully-accessed User and UserSession objects.
Requirements
- Rails 2.3+
- authlogic gem/plugin
- engines-helper plugin
- Haml (optional, but if you don't want to use it, you'll have to override the views)
Installation
As a submodule:
git submodule add git://github.com/hpoydar/authlogic-engine.git vendor/plugins/authlogic-engine
Direct installation:
script/plugin install git://github.com/hpoydar/authlogic-engine.git
Run the migrations after the code is installed
rake engines:sync:migrations
Usage
The plugin provides the following paths and controller methods, all of which can be overridden and/or extended (along with the authlogic functionality):
/signup, which uses UsersController#new/profile, which uses UsersController#show, #edit and #update/loginand/logout, which use UserSessions#new, #destroy- A
current_userhelper method for use across controllers and views in your app
A controller helper method for use with a before_filter throughout your application is also provided:
require_logged_in_user
To quickly override the successful login, logout or signup redirect destination, add the following to an environment or initializer: (Defaults to '/')
AuthlogicEngine.login_destination = your_custom_path
AuthlogicEngine.logout_destination = your_custom_path
AuthlogicEngine.signup_destination = your_custom_path
License
Authlogic is copyright (c) Ben Johnson of Binary Logic, released under the MIT license
Copyright (c) Henry Poydar, released under the MIT license







