# Restful authentication automatic login on signup

**URL:** <https://www.ruby-forum.com/t/restful-authentication-automatic-login-on-signup/91812>\
**Category:** Rails\
**Created:** [April 12, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/restful-authentication-automatic-login-on-signup/91812 "2007-04-12T15:30:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbe5ce/32.png) [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Post date:** [April 12, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/restful-authentication-automatic-login-on-signup/91812/1 "2007-04-12T15:30:31Z")

</div>

I’m using the Restful Authentication plugin for a project.

I’m trying to login users automatically after creating an account, but  
I’m not sure how to do this.

I though something like current\_user = @user would work in the create  
action of the user controller, but unfortunately this doesn’t seem to  
work.

Any ideas?
