plataformatec/devise — Issue #1705: Can't Login on A Mobile Device
Author: maxmcd
Created: 2012-03-08 16:56:04+00:00
State: open

Running a simple devise login app. Devise won't login on a mobile device. (specifically ios)

Posted below are the terminal responses I get. Sorry for the limited information, I'm new at this :/

Mobile (failed)

```
Started POST "/users/sign_in" for 192.168.1.9 at Thu Mar 08 11:32:50 -0500 2012
Processing by Devise::SessionsController#create as HTML
Parameters: {"authenticity_token"=>"N6r8grQHhY+ckmd9RMoLfLgUyntrWCiI9NbMNduEht8=", "commit"=>"Sign in", "utf8"=>"✓", "user"=>{"remember_me"=>"0", "email"=>"email@gmail.com", "password"=>"[FILTERED]"}}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'email@gmail.com' LIMIT 1
AREL (0.4ms) UPDATE "users" SET "last_sign_in_at" = '2012-03-08 16:32:46.804390', "current_sign_in_at" = '2012-03-08 16:32:50.483731', "updated_at" = '2012-03-08 16:32:50.484364', "sign_in_count" = 24 WHERE "users"."id" = 1
Redirected to http://192.168.1.4:3000/
Completed 302 Found in 121ms
```
Local

```
Started POST "/users/sign_in" for 127.0.0.1 at Thu Mar 08 11:29:02 -0500 2012
Processing by Devise::SessionsController#create as HTML
Parameters: {"authenticity_token"=>"Rt0B0bA4VKDjuMhNNjIiB1OfkFZnm5hKIdiHbhq19tU=", "commit"=>"Sign in", "utf8"=>"✓", "user"=>{"remember_me"=>"0", "email"=>"email@gmail.com", "password"=>"[FILTERED]"}}
SQL (0.8ms) SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'

User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'email@gmail.com' LIMIT 1
AREL (0.6ms) UPDATE "users" SET "current_sign_in_at" = '2012-03-08 16:29:02.907101', "sign_in_count" = 21, "last_sign_in_at" = '2012-03-08 16:23:15.726511', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '192.168.1.9', "updated_at" = '2012-03-08 16:29:02.907762' WHERE "users"."id" = 1
Redirected to http://localhost:3000/
Completed 302 Found in 338ms
```

Thanks for any help