{"issue":{"milestone":null,"title":"auto_login not working","created_at":"2011-12-29T19:08:50Z","user":{"login":"northband","id":470201,"url":"https://api.github.com/users/northband","avatar_url":"https://secure.gravatar.com/avatar/068d5aec7da6333ce34a848ed4867668?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"068d5aec7da6333ce34a848ed4867668"},"labels":[],"updated_at":"2011-12-30T00:36:03Z","state":"closed","id":2681804,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-30T00:36:03Z","html_url":"https://github.com/NoamB/sorcery/issues/180","body":"Hi - I'm trying to get auto_login to work but for some reason no luck.  Here's my code:\r\n\r\n  def activate\r\n    user = User.load_from_activation_token(params[:token])\r\n    if user\r\n      auto_login(user) # TODO does not work...\r\n      redirect_to(dashboard_url(:subdomain => user.subdomain), :notice => \"#{user.name} your account was successfully activated.\")\r\n    else\r\n      not_authenticated\r\n    end\r\n  end\r\n\r\n\r\nLooking at the log there's no failed login attempts, etc...  Its as if the method isn't being called.  I'm also using the latest version as well.\r\n\r\nAny help appreciated.  For now I'll have my users login upon activation - however would be nicer if activation simply logs them in automatically.\r\n\r\nBest,\r\nAdam ","number":180,"url":"https://api.github.com/repos/NoamB/sorcery/issues/180","comments":1,"assignee":null},"action":"closed"}