# Restful authentication =\> login, nothing happens?

**URL:** <https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554>\
**Category:** Rails\
**Created:** [April 1, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554 "2008-04-01T16:54:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![san1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@san1981](https://www.ruby-forum.com/u/san1981)\
**Post date:** [April 1, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554/1 "2008-04-01T16:54:59Z")

</div>

Hello,

Iâ€™m a newbie in the rails environment, Iâ€™m now busy with the plugin  
restful\_authentication.

Iâ€™ve signed me up without any problems but when I try to log me on the  
page/login via the form, nothing happens, I see always the page â€œloginâ€  
without any changes? No error messages, nothingâ€¦

Definitively I would like to be able to connect me as â€œadminâ€ and  
directly go to the section â€œadminâ€. Iâ€™ve already created a file admin  
(controllers/admin) within the specific â€œadminâ€ controllers. When I  
type [www.monsite.com/admin](http://www.monsite.com/admin), I arrive directly on the page â€œloginâ€ but  
afterwards nothing happens :s

Could you please help me?

Thanks you!

---

<div class="post-metadata">

**Author:** ![san1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@san1981](https://www.ruby-forum.com/u/san1981)\
**Post date:** [April 1, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554/2 "2008-04-01T17:17:30Z")

</div>

You might have signed up, but are you activated?

I’m not using parts of restful\_authentication, users “sign up” by  
emailing me, and I’ll create their user for them (kinda old school I  
guess)… so I changed a portion of the user model code to avoid the  
activation stuff.

def self.authenticate(login, password)  
#u = find :first, :conditions =\> [‘login = ? and enabled = ? and  
activated\_at IS NOT NULL’, login, true] # need to get the salt  
u = find :first, :conditions =\> [‘login = ?’, login] # need to get  
the salt  
u && u.authenticated?(password) ? u : nil  
end

I also edited the user migration to construct the admin user and set its  
password. First step after migrating is to login as admin, and create my  
personal login.

---

<div class="post-metadata">

**Author:** ![san1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@san1981](https://www.ruby-forum.com/u/san1981)\
**Post date:** [April 2, 2008, 8:21am UTC](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554/3 "2008-04-02T08:21:26Z")

</div>

Thanks you, that works perfectly!
