Passwords in the db don't work in different deployment environments

0 views
Skip to first unread message

Subbu

unread,
Dec 18, 2009, 12:36:50 AM12/18/09
to BANGALORE RUG-Ruby Users Group
Hi there,

I have been trying to use the same database for 2 Rails applications.
I want to use the same data for both the apps including the
authentication. But if I try to login using the credentials created in
one app in the other app it doesn't work. I use restful_authentication
for the logins. Though I have sessions also in the database I have no
intention to share them between the applications.

In further tests I imported the production db and set it up in my
local computer just to see if authentication works provided the same
username/password. But it doesn't work. Here I am using the same
application code.

Have anybody faced this problem?

Thanks
-subbu

Satish N Kota

unread,
Dec 18, 2009, 12:45:08 AM12/18/09
to bangal...@googlegroups.com
Hi Subbu,

Can you check the salt that is being used in both the authentications?

If its different...that might be the reason... Authentications are all done
after encryptions....

Regards
Satish N Kota

Hi there,

Thanks
-subbu

--

You received this message because you are subscribed to the Google Groups
"BANGALORE RUG-Ruby Users Group" group.
To post to this group, send an email to bangal...@googlegroups.com.
To unsubscribe from this group, send email to
bangalorerug...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/bangalorerug?hl=en-GB.


Reply all
Reply to author
Forward
0 new messages