Ruby on Rails
LoginSugar (Version #55)

This article is part of the confusing world of Authentication in Rails. Feel free to [help][AuthenticationNeedsHelp].

This is a modification of the SaltedHashLoginGenerator.

Note: Salt and Sugar are fairly heavyweight systems, if you just need a simple user system check out [actsas_authenticated][Acts_as_authenticated]_

login_sugar is a modification of salted_login generator 1.1.1 that works
out of the box on Rails 1.2.3

Changes:

  • tests all pass out of the box on Rails 1.2.3
  • using ActiveRecord::Migrations for db setup
  • put underscores in first_name and last_name user attributes
  • replaced Mock Time extension with a Mock Clock.
  • README_USER_LOGIN is a one stop readme
  • contains a default configuration zip
  • session references se symbols
  • localization removed
  • removed deprecated code

Requires Rails 1.2 or greater.
As of version 0.9.5, password validation is broken for Rails 2.0. It was a bug of login_sugar, just remove all the ‘@’ sign of “@password_needs_confirmation” in the model rb file. (by http://omegasharp.com)

Download: Login Sugar Gem 0.9.5

Or gem install login_sugar_generator

CHANGELOG

0.9.5 May 21, 2007 security updates. compatible with rails 1.2.3
v0.9.4 Jan 26 2007 removed scaffold references, removed localization, added generator rake task
v0.9.3 Nov 6 2006 fix Clock.now; symbolize session keys
v0.9.2 Sep 26 2006 fix localization reference in signup form.
v0.9.1 Sep 6 2006 fix missing last_name references.

Installation:


gem install login_sugar_generator

./script/generate login_sugar User Localization

—-

This article is part of the confusing world of Authentication in Rails. Feel free to [help][AuthenticationNeedsHelp].

This is a modification of the SaltedHashLoginGenerator.

Note: Salt and Sugar are fairly heavyweight systems, if you just need a simple user system check out [actsas_authenticated][Acts_as_authenticated]_

login_sugar is a modification of salted_login generator 1.1.1 that works
out of the box on Rails 1.2.3

Changes:

  • tests all pass out of the box on Rails 1.2.3
  • using ActiveRecord::Migrations for db setup
  • put underscores in first_name and last_name user attributes
  • replaced Mock Time extension with a Mock Clock.
  • README_USER_LOGIN is a one stop readme
  • contains a default configuration zip
  • session references se symbols
  • localization removed
  • removed deprecated code

Requires Rails 1.2 or greater.
As of version 0.9.5, password validation is broken for Rails 2.0. It was a bug of login_sugar, just remove all the ‘@’ sign of “@password_needs_confirmation” in the model rb file. (by http://omegasharp.com)

Download: Login Sugar Gem 0.9.5

Or gem install login_sugar_generator

CHANGELOG

0.9.5 May 21, 2007 security updates. compatible with rails 1.2.3
v0.9.4 Jan 26 2007 removed scaffold references, removed localization, added generator rake task
v0.9.3 Nov 6 2006 fix Clock.now; symbolize session keys
v0.9.2 Sep 26 2006 fix localization reference in signup form.
v0.9.1 Sep 6 2006 fix missing last_name references.

Installation:


gem install login_sugar_generator

./script/generate login_sugar User Localization

—-