Migrating from login_engine to AAA

Hello all,

I’m currently upgrading my app to Rails 1.2, and the login_engine has
been deprecated for that version.
Is there an easy way to upgrade my existing user table (especially
passwords) for use with acts_as_authenticated?

thanks in advance.

Bart Z. wrote:

Hello all,

I’m currently upgrading my app to Rails 1.2, and the login_engine has
been deprecated for that version.
Is there an easy way to upgrade my existing user table (especially
passwords) for use with acts_as_authenticated?

thanks in advance.

Nobody?..

I’m in the process of upgrading a rails app from login_engine to acts
as authenticated. I believe that the user table from login_engine is
compatible with AAA. I am having one problem though. When I go to run
the AAA generator I get the following error:

bash-# script/generate authenticated --svn user account

./script/…/config/…/vendor/plugins/engines/lib/engines.rb:355:in
initialize': Cannot find the engine 'login' in either /vendor/plugins/ login, /vendor/plugins/login_engine or /vendor/plugins/login_bundle. (RuntimeError) from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:172:in new’
from ./script/…/config/…/vendor/plugins/engines/lib/
engines.rb:172:in start_engine' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:141:in start’
from ./script/…/config/…/vendor/plugins/engines/lib/
engines.rb:140:in each' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:140:in start’
from ./script/…/config/…/config/environment.rb:56
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in require’
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/
generate.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:in require’
from script/generate:3

I have already un-installed the login engine with the following
command:

bash-# script/plugin remove login_engine

However, it looks like the generator authenticated is still confused.
I’m looking for a solution to this problem but haven’t found one yet.

On 14 May, 02:56, Bart Z. [email protected]

Ok so what you have to to is add a column to your existing users table
called crypted_password. Also the problems I was having steamed from
lines in config/environment specific to login_engin. I commented those
lines out and things started working.

On May 14, 2:56 am, Bart Z. [email protected]

I completely removed and re-installed acts as authenticated and now
I’m getting the following error:

bash-# script/generate authenticated --svn user account

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
dependencies.rb:123:in const_missing': uninitialized constant LoginEngine (NameError) from ./script/../config/../vendor/plugins/user_engine/lib/ user_engine.rb:46 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:ingem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in require' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:147:inrequire’
from script/…/config/…/vendor/plugins/user_engine/
init_engine.rb:27:in start_engine' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:201:instart_engine’
from ./script/…/config/…/vendor/plugins/engines/lib/
engines.rb:141:in start' from ./script/../config/../vendor/plugins/engines/lib/ engines.rb:140:ineach’
from ./script/…/config/…/vendor/plugins/engines/lib/
engines.rb:140:in start' from ./script/../config/../config/environment.rb:56 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:ingem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in require' from /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/ generate.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb: 27:ingem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require’
from script/generate:3