My sole login type is Twitter OAuth; I’m using Authlogic with the
Oauth addition for authentication.
I’m trying to build my Rails app such that the user is automatically
redirected to Twitter’s login/registration, instead of having a “login
with Twitter” button on my page.
That works so far, using a new view like this:<% form_tag(user_session_path, :method => :post, :id => 'new_user_session') do %> <%= hidden_field_tag 'login_with_oauth', 'Login with Twitter' %> <% end %>
I’m trying to get Remember Me to work now, without success. I added
<%= hidden_field_tag ‘user_session[remember_me]’, ‘1’ %>
to the above form, but that doesn’t appear to work; I still get
redirected to Twitter (after restarting the browser).
I’d like to be able to get Remember Me behavior out of the
registration, too, if that’s possible. So the user goes to the app,
registers, and ~never signs in again.
Any ideas what I’m missing?