devise_token_auth 0.1.32.beta1 → 0.1.32.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/devise_token_auth/sessions_controller.rb +43 -14
- data/app/models/devise_token_auth/concerns/user.rb +1 -3
- data/lib/devise_token_auth/version.rb +1 -1
- data/test/controllers/devise_token_auth/sessions_controller_test.rb +14 -0
- data/test/dummy/app/controllers/overrides/sessions_controller.rb +1 -1
- data/test/dummy/config/initializers/devise.rb +3 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb +1 -0
- data/test/dummy/db/schema.rb +95 -94
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +733 -0
- data/test/dummy/log/test.log +75021 -0
- data/test/dummy/tmp/generators/db/migrate/{20150203233903_devise_token_auth_create_users.rb → 20150209041130_devise_token_auth_create_users.rb} +0 -0
- data/test/fixtures/users.yml +21 -20
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3450d2f26191c0b52822592c53daa9f3fc04bf0b
|
4
|
+
data.tar.gz: 26113778530b14ceb185f6d863f3796cef6d6b7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26ba4b1aba7a0adab059b46ce5b5506870ce6c7c04eb3a584465a7dcab734eb72b8670c23ed153c55935acefc7c3a9d0971f1705a909433a3c73f4f55902b670
|
7
|
+
data.tar.gz: d0bdee7c56178b4fc3b70641d08ec3f93af32005f2d095dc05fe3ed8e4ef2cd3f76b7573c459577f94252f77f1dfc99dc35a69ea1fd463d5febc741e7b81ddc8
|
@@ -4,22 +4,27 @@ module DeviseTokenAuth
|
|
4
4
|
before_filter :set_user_by_token, :only => [:destroy]
|
5
5
|
|
6
6
|
def create
|
7
|
-
#
|
8
|
-
|
9
|
-
email = resource_params[:email].downcase
|
10
|
-
else
|
11
|
-
email = resource_params[:email]
|
12
|
-
end
|
7
|
+
# Check
|
8
|
+
field = (resource_params.keys.map(&:to_sym) & resource_class.authentication_keys).first
|
13
9
|
|
14
|
-
|
10
|
+
@resource = nil
|
11
|
+
if field
|
12
|
+
q_value = resource_params[field]
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
if resource_class.case_insensitive_keys.include?(field)
|
15
|
+
q_value.downcase!
|
16
|
+
end
|
19
17
|
|
20
|
-
|
18
|
+
q = "#{field.to_s} = ? AND provider='email'"
|
19
|
+
|
20
|
+
if ActiveRecord::Base.connection.adapter_name.downcase.starts_with? 'mysql'
|
21
|
+
q = "BINARY " + q
|
22
|
+
end
|
23
|
+
|
24
|
+
@resource = resource_class.where(q, q_value).first
|
25
|
+
end
|
21
26
|
|
22
|
-
if @resource and valid_params? and @resource.valid_password?(resource_params[:password]) and @resource.confirmed?
|
27
|
+
if @resource and valid_params?(field, q_value) and @resource.valid_password?(resource_params[:password]) and @resource.confirmed?
|
23
28
|
# create client id
|
24
29
|
@client_id = SecureRandom.urlsafe_base64(nil, false)
|
25
30
|
@token = SecureRandom.urlsafe_base64(nil, false)
|
@@ -76,12 +81,36 @@ module DeviseTokenAuth
|
|
76
81
|
end
|
77
82
|
end
|
78
83
|
|
79
|
-
def valid_params?
|
80
|
-
resource_params[:password] &&
|
84
|
+
def valid_params?(key, val)
|
85
|
+
resource_params[:password] && key && val
|
81
86
|
end
|
82
87
|
|
83
88
|
def resource_params
|
84
89
|
params.permit(devise_parameter_sanitizer.for(:sign_in))
|
85
90
|
end
|
91
|
+
|
92
|
+
def get_auth_params
|
93
|
+
auth_key = nil
|
94
|
+
auth_val = nil
|
95
|
+
|
96
|
+
# iterate thru allowed auth keys, use first found
|
97
|
+
resource_class.authentication_keys.each do |k|
|
98
|
+
if resource_params[k]
|
99
|
+
auth_val = resource_params[k]
|
100
|
+
auth_key = k
|
101
|
+
break
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# honor devise configuration for case_insensitive_keys
|
106
|
+
if resource_class.case_insensitive_keys.include?(auth_key)
|
107
|
+
auth_val.downcase!
|
108
|
+
end
|
109
|
+
|
110
|
+
return {
|
111
|
+
key: auth_key,
|
112
|
+
val: auth_val
|
113
|
+
}
|
114
|
+
end
|
86
115
|
end
|
87
116
|
end
|
@@ -5,8 +5,7 @@ module DeviseTokenAuth::Concerns::User
|
|
5
5
|
# Hack to check if devise is already enabled
|
6
6
|
unless self.method_defined?(:devise_modules)
|
7
7
|
devise :database_authenticatable, :registerable,
|
8
|
-
:recoverable, :trackable, :validatable,
|
9
|
-
:confirmable
|
8
|
+
:recoverable, :trackable, :validatable, :confirmable
|
10
9
|
else
|
11
10
|
self.devise_modules.delete(:omniauthable)
|
12
11
|
end
|
@@ -39,7 +38,6 @@ module DeviseTokenAuth::Concerns::User
|
|
39
38
|
false
|
40
39
|
end
|
41
40
|
|
42
|
-
|
43
41
|
# override devise method to include additional info as opts hash
|
44
42
|
def send_confirmation_instructions(opts=nil)
|
45
43
|
unless @raw_confirmation_token
|
@@ -73,6 +73,20 @@ class DeviseTokenAuth::SessionsControllerTest < ActionController::TestCase
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
describe 'alt auth keys' do
|
77
|
+
before do
|
78
|
+
xhr :post, :create, {
|
79
|
+
nickname: @existing_user.nickname,
|
80
|
+
password: 'secret123'
|
81
|
+
}
|
82
|
+
@data = JSON.parse(response.body)
|
83
|
+
end
|
84
|
+
|
85
|
+
test 'user can sign in using nickname' do
|
86
|
+
assert_equal 200, response.status
|
87
|
+
assert_equal @existing_user.email, @data['data']['email']
|
88
|
+
end
|
89
|
+
end
|
76
90
|
|
77
91
|
describe 'authed user sign out' do
|
78
92
|
before do
|
@@ -5,7 +5,7 @@ module Overrides
|
|
5
5
|
def create
|
6
6
|
@resource = resource_class.find_by_email(resource_params[:email])
|
7
7
|
|
8
|
-
if @resource and valid_params? and @resource.valid_password?(resource_params[:password]) and @resource.confirmed?
|
8
|
+
if @resource and valid_params?(:email, resource_params[:email]) and @resource.valid_password?(resource_params[:password]) and @resource.confirmed?
|
9
9
|
# create client id
|
10
10
|
@client_id = SecureRandom.urlsafe_base64(nil, false)
|
11
11
|
@token = SecureRandom.urlsafe_base64(nil, false)
|
Binary file
|
@@ -51,6 +51,7 @@ class DeviseTokenAuthCreateUsers < ActiveRecord::Migration
|
|
51
51
|
add_index :users, [:uid, :provider], :unique => true
|
52
52
|
add_index :users, :reset_password_token, :unique => true
|
53
53
|
add_index :users, :confirmation_token, :unique => true
|
54
|
+
add_index :users, :nickname, :unique => true
|
54
55
|
# add_index :users, :unlock_token, :unique => true
|
55
56
|
end
|
56
57
|
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -13,147 +13,148 @@
|
|
13
13
|
|
14
14
|
ActiveRecord::Schema.define(version: 20141222053502) do
|
15
15
|
|
16
|
-
create_table "evil_users", force:
|
17
|
-
t.string "email"
|
18
|
-
t.string "encrypted_password", default: "", null: false
|
19
|
-
t.string "reset_password_token"
|
16
|
+
create_table "evil_users", force: :cascade do |t|
|
17
|
+
t.string "email", limit: 255
|
18
|
+
t.string "encrypted_password", limit: 255, default: "", null: false
|
19
|
+
t.string "reset_password_token", limit: 255
|
20
20
|
t.datetime "reset_password_sent_at"
|
21
21
|
t.datetime "remember_created_at"
|
22
|
-
t.integer "sign_in_count", default: 0, null: false
|
22
|
+
t.integer "sign_in_count", limit: 4, default: 0, null: false
|
23
23
|
t.datetime "current_sign_in_at"
|
24
24
|
t.datetime "last_sign_in_at"
|
25
|
-
t.string "current_sign_in_ip"
|
26
|
-
t.string "last_sign_in_ip"
|
27
|
-
t.string "confirmation_token"
|
25
|
+
t.string "current_sign_in_ip", limit: 255
|
26
|
+
t.string "last_sign_in_ip", limit: 255
|
27
|
+
t.string "confirmation_token", limit: 255
|
28
28
|
t.datetime "confirmed_at"
|
29
29
|
t.datetime "confirmation_sent_at"
|
30
|
-
t.string "unconfirmed_email"
|
31
|
-
t.string "name"
|
32
|
-
t.string "nickname"
|
33
|
-
t.string "image"
|
34
|
-
t.string "provider"
|
35
|
-
t.string "uid", default: "", null: false
|
36
|
-
t.text "tokens"
|
37
|
-
t.string "favorite_color"
|
30
|
+
t.string "unconfirmed_email", limit: 255
|
31
|
+
t.string "name", limit: 255
|
32
|
+
t.string "nickname", limit: 255
|
33
|
+
t.string "image", limit: 255
|
34
|
+
t.string "provider", limit: 255
|
35
|
+
t.string "uid", limit: 255, default: "", null: false
|
36
|
+
t.text "tokens", limit: 65535
|
37
|
+
t.string "favorite_color", limit: 255
|
38
38
|
t.datetime "created_at"
|
39
39
|
t.datetime "updated_at"
|
40
40
|
end
|
41
41
|
|
42
|
-
add_index "evil_users", ["confirmation_token"], name: "index_evil_users_on_confirmation_token", unique: true
|
43
|
-
add_index "evil_users", ["email"], name: "index_evil_users_on_email"
|
44
|
-
add_index "evil_users", ["reset_password_token"], name: "index_evil_users_on_reset_password_token", unique: true
|
45
|
-
add_index "evil_users", ["uid", "provider"], name: "index_evil_users_on_uid_and_provider", unique: true
|
42
|
+
add_index "evil_users", ["confirmation_token"], name: "index_evil_users_on_confirmation_token", unique: true, using: :btree
|
43
|
+
add_index "evil_users", ["email"], name: "index_evil_users_on_email", using: :btree
|
44
|
+
add_index "evil_users", ["reset_password_token"], name: "index_evil_users_on_reset_password_token", unique: true, using: :btree
|
45
|
+
add_index "evil_users", ["uid", "provider"], name: "index_evil_users_on_uid_and_provider", unique: true, using: :btree
|
46
46
|
|
47
|
-
create_table "mangs", force:
|
48
|
-
t.string "email"
|
49
|
-
t.string "encrypted_password", default: "", null: false
|
50
|
-
t.string "reset_password_token"
|
47
|
+
create_table "mangs", force: :cascade do |t|
|
48
|
+
t.string "email", limit: 255
|
49
|
+
t.string "encrypted_password", limit: 255, default: "", null: false
|
50
|
+
t.string "reset_password_token", limit: 255
|
51
51
|
t.datetime "reset_password_sent_at"
|
52
|
-
t.string "reset_password_redirect_url"
|
52
|
+
t.string "reset_password_redirect_url", limit: 255
|
53
53
|
t.datetime "remember_created_at"
|
54
|
-
t.integer "sign_in_count", default: 0, null: false
|
54
|
+
t.integer "sign_in_count", limit: 4, default: 0, null: false
|
55
55
|
t.datetime "current_sign_in_at"
|
56
56
|
t.datetime "last_sign_in_at"
|
57
|
-
t.string "current_sign_in_ip"
|
58
|
-
t.string "last_sign_in_ip"
|
59
|
-
t.string "confirmation_token"
|
57
|
+
t.string "current_sign_in_ip", limit: 255
|
58
|
+
t.string "last_sign_in_ip", limit: 255
|
59
|
+
t.string "confirmation_token", limit: 255
|
60
60
|
t.datetime "confirmed_at"
|
61
61
|
t.datetime "confirmation_sent_at"
|
62
|
-
t.string "confirm_success_url"
|
63
|
-
t.string "unconfirmed_email"
|
64
|
-
t.string "name"
|
65
|
-
t.string "nickname"
|
66
|
-
t.string "image"
|
67
|
-
t.string "provider"
|
68
|
-
t.string "uid", default: "", null: false
|
69
|
-
t.text "tokens"
|
62
|
+
t.string "confirm_success_url", limit: 255
|
63
|
+
t.string "unconfirmed_email", limit: 255
|
64
|
+
t.string "name", limit: 255
|
65
|
+
t.string "nickname", limit: 255
|
66
|
+
t.string "image", limit: 255
|
67
|
+
t.string "provider", limit: 255
|
68
|
+
t.string "uid", limit: 255, default: "", null: false
|
69
|
+
t.text "tokens", limit: 65535
|
70
70
|
t.datetime "created_at"
|
71
71
|
t.datetime "updated_at"
|
72
|
-
t.string "favorite_color"
|
72
|
+
t.string "favorite_color", limit: 255
|
73
73
|
end
|
74
74
|
|
75
|
-
add_index "mangs", ["confirmation_token"], name: "index_mangs_on_confirmation_token", unique: true
|
76
|
-
add_index "mangs", ["email"], name: "index_mangs_on_email"
|
77
|
-
add_index "mangs", ["reset_password_token"], name: "index_mangs_on_reset_password_token", unique: true
|
78
|
-
add_index "mangs", ["uid", "provider"], name: "index_mangs_on_uid_and_provider", unique: true
|
75
|
+
add_index "mangs", ["confirmation_token"], name: "index_mangs_on_confirmation_token", unique: true, using: :btree
|
76
|
+
add_index "mangs", ["email"], name: "index_mangs_on_email", using: :btree
|
77
|
+
add_index "mangs", ["reset_password_token"], name: "index_mangs_on_reset_password_token", unique: true, using: :btree
|
78
|
+
add_index "mangs", ["uid", "provider"], name: "index_mangs_on_uid_and_provider", unique: true, using: :btree
|
79
79
|
|
80
|
-
create_table "only_email_users", force:
|
81
|
-
t.string "provider",
|
82
|
-
t.string "uid", default: "", null: false
|
83
|
-
t.string "encrypted_password", default: "", null: false
|
84
|
-
t.string "name"
|
85
|
-
t.string "nickname"
|
86
|
-
t.string "image"
|
87
|
-
t.string "email"
|
88
|
-
t.text "tokens"
|
80
|
+
create_table "only_email_users", force: :cascade do |t|
|
81
|
+
t.string "provider", limit: 255, null: false
|
82
|
+
t.string "uid", limit: 255, default: "", null: false
|
83
|
+
t.string "encrypted_password", limit: 255, default: "", null: false
|
84
|
+
t.string "name", limit: 255
|
85
|
+
t.string "nickname", limit: 255
|
86
|
+
t.string "image", limit: 255
|
87
|
+
t.string "email", limit: 255
|
88
|
+
t.text "tokens", limit: 65535
|
89
89
|
t.datetime "created_at"
|
90
90
|
t.datetime "updated_at"
|
91
91
|
end
|
92
92
|
|
93
|
-
add_index "only_email_users", ["email"], name: "index_only_email_users_on_email"
|
94
|
-
add_index "only_email_users", ["uid", "provider"], name: "index_only_email_users_on_uid_and_provider", unique: true
|
93
|
+
add_index "only_email_users", ["email"], name: "index_only_email_users_on_email", using: :btree
|
94
|
+
add_index "only_email_users", ["uid", "provider"], name: "index_only_email_users_on_uid_and_provider", unique: true, using: :btree
|
95
95
|
|
96
|
-
create_table "unregisterable_users", force:
|
97
|
-
t.string "provider",
|
98
|
-
t.string "uid", default: "", null: false
|
99
|
-
t.string "encrypted_password", default: "", null: false
|
100
|
-
t.string "reset_password_token"
|
96
|
+
create_table "unregisterable_users", force: :cascade do |t|
|
97
|
+
t.string "provider", limit: 255, null: false
|
98
|
+
t.string "uid", limit: 255, default: "", null: false
|
99
|
+
t.string "encrypted_password", limit: 255, default: "", null: false
|
100
|
+
t.string "reset_password_token", limit: 255
|
101
101
|
t.datetime "reset_password_sent_at"
|
102
102
|
t.datetime "remember_created_at"
|
103
|
-
t.integer "sign_in_count", default: 0, null: false
|
103
|
+
t.integer "sign_in_count", limit: 4, default: 0, null: false
|
104
104
|
t.datetime "current_sign_in_at"
|
105
105
|
t.datetime "last_sign_in_at"
|
106
|
-
t.string "current_sign_in_ip"
|
107
|
-
t.string "last_sign_in_ip"
|
108
|
-
t.string "confirmation_token"
|
106
|
+
t.string "current_sign_in_ip", limit: 255
|
107
|
+
t.string "last_sign_in_ip", limit: 255
|
108
|
+
t.string "confirmation_token", limit: 255
|
109
109
|
t.datetime "confirmed_at"
|
110
110
|
t.datetime "confirmation_sent_at"
|
111
|
-
t.string "unconfirmed_email"
|
112
|
-
t.string "name"
|
113
|
-
t.string "nickname"
|
114
|
-
t.string "image"
|
115
|
-
t.string "email"
|
116
|
-
t.text "tokens"
|
111
|
+
t.string "unconfirmed_email", limit: 255
|
112
|
+
t.string "name", limit: 255
|
113
|
+
t.string "nickname", limit: 255
|
114
|
+
t.string "image", limit: 255
|
115
|
+
t.string "email", limit: 255
|
116
|
+
t.text "tokens", limit: 65535
|
117
117
|
t.datetime "created_at"
|
118
118
|
t.datetime "updated_at"
|
119
119
|
end
|
120
120
|
|
121
|
-
add_index "unregisterable_users", ["email"], name: "index_unregisterable_users_on_email"
|
122
|
-
add_index "unregisterable_users", ["reset_password_token"], name: "index_unregisterable_users_on_reset_password_token", unique: true
|
123
|
-
add_index "unregisterable_users", ["uid", "provider"], name: "index_unregisterable_users_on_uid_and_provider", unique: true
|
121
|
+
add_index "unregisterable_users", ["email"], name: "index_unregisterable_users_on_email", using: :btree
|
122
|
+
add_index "unregisterable_users", ["reset_password_token"], name: "index_unregisterable_users_on_reset_password_token", unique: true, using: :btree
|
123
|
+
add_index "unregisterable_users", ["uid", "provider"], name: "index_unregisterable_users_on_uid_and_provider", unique: true, using: :btree
|
124
124
|
|
125
|
-
create_table "users", force:
|
126
|
-
t.string "email"
|
127
|
-
t.string "encrypted_password", default: "", null: false
|
128
|
-
t.string "reset_password_token"
|
125
|
+
create_table "users", force: :cascade do |t|
|
126
|
+
t.string "email", limit: 255
|
127
|
+
t.string "encrypted_password", limit: 255, default: "", null: false
|
128
|
+
t.string "reset_password_token", limit: 255
|
129
129
|
t.datetime "reset_password_sent_at"
|
130
|
-
t.string "reset_password_redirect_url"
|
130
|
+
t.string "reset_password_redirect_url", limit: 255
|
131
131
|
t.datetime "remember_created_at"
|
132
|
-
t.integer "sign_in_count", default: 0, null: false
|
132
|
+
t.integer "sign_in_count", limit: 4, default: 0, null: false
|
133
133
|
t.datetime "current_sign_in_at"
|
134
134
|
t.datetime "last_sign_in_at"
|
135
|
-
t.string "current_sign_in_ip"
|
136
|
-
t.string "last_sign_in_ip"
|
137
|
-
t.string "confirmation_token"
|
135
|
+
t.string "current_sign_in_ip", limit: 255
|
136
|
+
t.string "last_sign_in_ip", limit: 255
|
137
|
+
t.string "confirmation_token", limit: 255
|
138
138
|
t.datetime "confirmed_at"
|
139
139
|
t.datetime "confirmation_sent_at"
|
140
|
-
t.string "confirm_success_url"
|
141
|
-
t.string "unconfirmed_email"
|
142
|
-
t.string "name"
|
143
|
-
t.string "nickname"
|
144
|
-
t.string "image"
|
145
|
-
t.string "provider"
|
146
|
-
t.string "uid", default: "", null: false
|
147
|
-
t.text "tokens"
|
140
|
+
t.string "confirm_success_url", limit: 255
|
141
|
+
t.string "unconfirmed_email", limit: 255
|
142
|
+
t.string "name", limit: 255
|
143
|
+
t.string "nickname", limit: 255
|
144
|
+
t.string "image", limit: 255
|
145
|
+
t.string "provider", limit: 255
|
146
|
+
t.string "uid", limit: 255, default: "", null: false
|
147
|
+
t.text "tokens", limit: 65535
|
148
148
|
t.datetime "created_at"
|
149
149
|
t.datetime "updated_at"
|
150
|
-
t.integer "operating_thetan"
|
151
|
-
t.string "favorite_color"
|
150
|
+
t.integer "operating_thetan", limit: 4
|
151
|
+
t.string "favorite_color", limit: 255
|
152
152
|
end
|
153
153
|
|
154
|
-
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
|
155
|
-
add_index "users", ["email"], name: "index_users_on_email"
|
156
|
-
add_index "users", ["
|
157
|
-
add_index "users", ["
|
154
|
+
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
|
155
|
+
add_index "users", ["email"], name: "index_users_on_email", using: :btree
|
156
|
+
add_index "users", ["nickname"], name: "index_users_on_nickname", unique: true, using: :btree
|
157
|
+
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
158
|
+
add_index "users", ["uid", "provider"], name: "index_users_on_uid_and_provider", unique: true, using: :btree
|
158
159
|
|
159
160
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -10695,3 +10695,736 @@ Completed 200 OK in 81ms (Views: 0.3ms | ActiveRecord: 2.5ms)
|
|
10695
10695
|
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
10696
10696
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
10697
10697
|
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
10698
|
+
|
10699
|
+
|
10700
|
+
Started GET "/auth/github?auth_origin_url=http%3A%2F%2Fng-token-auth.dev%2F" for 127.0.0.1 at 2015-02-08 19:53:18 -0600
|
10701
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10702
|
+
|
10703
|
+
|
10704
|
+
Started GET "/omniauth/github?auth_origin_url=http%3A%2F%2Fng-token-auth.dev%2F&resource_class=User" for 127.0.0.1 at 2015-02-08 19:53:25 -0600
|
10705
|
+
|
10706
|
+
|
10707
|
+
Started GET "/auth/github?auth_origin_url=http%3A%2F%2Fng-token-auth.dev%2F" for 127.0.0.1 at 2015-02-08 19:56:34 -0600
|
10708
|
+
|
10709
|
+
|
10710
|
+
Started GET "/omniauth/github?auth_origin_url=http%3A%2F%2Fng-token-auth.dev%2F&resource_class=User" for 127.0.0.1 at 2015-02-08 19:56:34 -0600
|
10711
|
+
|
10712
|
+
|
10713
|
+
Started GET "/omniauth/github/callback?code=81b688cd8a55704e2445&state=53e573a7777a7396389de66fab516920d71d80ca4857cf0d" for 127.0.0.1 at 2015-02-08 19:56:38 -0600
|
10714
|
+
Processing by DeviseTokenAuth::OmniauthCallbacksController#redirect_callbacks as HTML
|
10715
|
+
Parameters: {"code"=>"81b688cd8a55704e2445", "state"=>"53e573a7777a7396389de66fab516920d71d80ca4857cf0d", "provider"=>"github"}
|
10716
|
+
Redirected to https://devise-token-auth.dev/auth/github/callback
|
10717
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
10718
|
+
|
10719
|
+
|
10720
|
+
Started GET "/auth/github/callback" for 127.0.0.1 at 2015-02-08 19:56:39 -0600
|
10721
|
+
Processing by DeviseTokenAuth::OmniauthCallbacksController#omniauth_success as HTML
|
10722
|
+
Parameters: {"provider"=>"github"}
|
10723
|
+
[1m[35mUser Load (12.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? AND "users"."provider" = ? ORDER BY "users"."id" ASC LIMIT 1 [["uid", "468037"], ["provider", "github"]]
|
10724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10725
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "tokens" = ?, "confirmed_at" = ?, "last_sign_in_at" = ?, "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{\"3aX_-QQVRPQLf2wSjwneqw\":{\"token\":\"$2a$10$iqY791AXZ/9.ElrhHC1C/.j.3rEDDY4CwL9b34WHkf.6JQKZT8RUS\",\"expiry\":1424656599}}"], ["confirmed_at", "2015-02-09 01:56:39.588005"], ["last_sign_in_at", "2015-01-07 09:59:28.508713"], ["current_sign_in_at", "2015-02-09 01:56:39.588844"], ["sign_in_count", 3], ["updated_at", "2015-02-09 01:56:39.592876"], ["id", 5]]
|
10726
|
+
[1m[36m (3.0ms)[0m [1mcommit transaction[0m
|
10727
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10728
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
10729
|
+
Rendered /Users/lynn/Code/Auth/devise_token_auth/app/views/devise_token_auth/omniauth_success.html.erb within layouts/omniauth_response (7.4ms)
|
10730
|
+
Completed 200 OK in 133ms (Views: 15.1ms | ActiveRecord: 16.2ms)
|
10731
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
10732
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10733
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
10734
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10735
|
+
Migrating to DeviseTokenAuthCreateUsers (20140715061447)
|
10736
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10737
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb:47)
|
10738
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "reset_password_redirect_url" varchar, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "confirm_success_url" varchar, "unconfirmed_email" varchar, "name" varchar, "nickname" varchar, "image" varchar, "provider" varchar, "uid" varchar DEFAULT '' NOT NULL, "tokens" text, "created_at" datetime, "updated_at" datetime)
|
10739
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_users_on_email" ON "users" ("email")[0m
|
10740
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10741
|
+
FROM sqlite_master
|
10742
|
+
WHERE name='index_users_on_email' AND type='index'
|
10743
|
+
UNION ALL
|
10744
|
+
SELECT sql
|
10745
|
+
FROM sqlite_temp_master
|
10746
|
+
WHERE name='index_users_on_email' AND type='index'
|
10747
|
+
|
10748
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_uid_and_provider" ON "users" ("uid", "provider")[0m
|
10749
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10750
|
+
FROM sqlite_master
|
10751
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10752
|
+
UNION ALL
|
10753
|
+
SELECT sql
|
10754
|
+
FROM sqlite_temp_master
|
10755
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10756
|
+
|
10757
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10758
|
+
FROM sqlite_master
|
10759
|
+
WHERE name='index_users_on_email' AND type='index'
|
10760
|
+
UNION ALL
|
10761
|
+
SELECT sql
|
10762
|
+
FROM sqlite_temp_master
|
10763
|
+
WHERE name='index_users_on_email' AND type='index'
|
10764
|
+
[0m
|
10765
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
10766
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10767
|
+
FROM sqlite_master
|
10768
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
10769
|
+
UNION ALL
|
10770
|
+
SELECT sql
|
10771
|
+
FROM sqlite_temp_master
|
10772
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
10773
|
+
[0m
|
10774
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10775
|
+
FROM sqlite_master
|
10776
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10777
|
+
UNION ALL
|
10778
|
+
SELECT sql
|
10779
|
+
FROM sqlite_temp_master
|
10780
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10781
|
+
|
10782
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10783
|
+
FROM sqlite_master
|
10784
|
+
WHERE name='index_users_on_email' AND type='index'
|
10785
|
+
UNION ALL
|
10786
|
+
SELECT sql
|
10787
|
+
FROM sqlite_temp_master
|
10788
|
+
WHERE name='index_users_on_email' AND type='index'
|
10789
|
+
[0m
|
10790
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_confirmation_token" ON "users" ("confirmation_token")
|
10791
|
+
[1m[36m (0.0ms)[0m [1m SELECT sql
|
10792
|
+
FROM sqlite_master
|
10793
|
+
WHERE name='index_users_on_confirmation_token' AND type='index'
|
10794
|
+
UNION ALL
|
10795
|
+
SELECT sql
|
10796
|
+
FROM sqlite_temp_master
|
10797
|
+
WHERE name='index_users_on_confirmation_token' AND type='index'
|
10798
|
+
[0m
|
10799
|
+
[1m[35m (0.0ms)[0m SELECT sql
|
10800
|
+
FROM sqlite_master
|
10801
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
10802
|
+
UNION ALL
|
10803
|
+
SELECT sql
|
10804
|
+
FROM sqlite_temp_master
|
10805
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
10806
|
+
|
10807
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10808
|
+
FROM sqlite_master
|
10809
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10810
|
+
UNION ALL
|
10811
|
+
SELECT sql
|
10812
|
+
FROM sqlite_temp_master
|
10813
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
10814
|
+
[0m
|
10815
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10816
|
+
FROM sqlite_master
|
10817
|
+
WHERE name='index_users_on_email' AND type='index'
|
10818
|
+
UNION ALL
|
10819
|
+
SELECT sql
|
10820
|
+
FROM sqlite_temp_master
|
10821
|
+
WHERE name='index_users_on_email' AND type='index'
|
10822
|
+
|
10823
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_nickname" ON "users" ("nickname")[0m
|
10824
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140715061447"]]
|
10825
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
10826
|
+
Migrating to DeviseTokenAuthCreateMangs (20140715061805)
|
10827
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10828
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb:47)
|
10829
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "mangs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "reset_password_redirect_url" varchar, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "confirm_success_url" varchar, "unconfirmed_email" varchar, "name" varchar, "nickname" varchar, "image" varchar, "provider" varchar, "uid" varchar DEFAULT '' NOT NULL, "tokens" text, "created_at" datetime, "updated_at" datetime) [0m
|
10830
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_mangs_on_email" ON "mangs" ("email")
|
10831
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10832
|
+
FROM sqlite_master
|
10833
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10834
|
+
UNION ALL
|
10835
|
+
SELECT sql
|
10836
|
+
FROM sqlite_temp_master
|
10837
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10838
|
+
[0m
|
10839
|
+
[1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_mangs_on_uid_and_provider" ON "mangs" ("uid", "provider")
|
10840
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10841
|
+
FROM sqlite_master
|
10842
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
10843
|
+
UNION ALL
|
10844
|
+
SELECT sql
|
10845
|
+
FROM sqlite_temp_master
|
10846
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
10847
|
+
[0m
|
10848
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10849
|
+
FROM sqlite_master
|
10850
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10851
|
+
UNION ALL
|
10852
|
+
SELECT sql
|
10853
|
+
FROM sqlite_temp_master
|
10854
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10855
|
+
|
10856
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_mangs_on_reset_password_token" ON "mangs" ("reset_password_token")[0m
|
10857
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10858
|
+
FROM sqlite_master
|
10859
|
+
WHERE name='index_mangs_on_reset_password_token' AND type='index'
|
10860
|
+
UNION ALL
|
10861
|
+
SELECT sql
|
10862
|
+
FROM sqlite_temp_master
|
10863
|
+
WHERE name='index_mangs_on_reset_password_token' AND type='index'
|
10864
|
+
|
10865
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10866
|
+
FROM sqlite_master
|
10867
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
10868
|
+
UNION ALL
|
10869
|
+
SELECT sql
|
10870
|
+
FROM sqlite_temp_master
|
10871
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
10872
|
+
[0m
|
10873
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10874
|
+
FROM sqlite_master
|
10875
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10876
|
+
UNION ALL
|
10877
|
+
SELECT sql
|
10878
|
+
FROM sqlite_temp_master
|
10879
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
10880
|
+
|
10881
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_mangs_on_confirmation_token" ON "mangs" ("confirmation_token")[0m
|
10882
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140715061805"]]
|
10883
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
10884
|
+
Migrating to AddOperatingThetanToUser (20140829044006)
|
10885
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10886
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "operating_thetan" integer[0m
|
10887
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "favorite_color" varchar
|
10888
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140829044006"]]
|
10889
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10890
|
+
Migrating to AddFavoriteColorToMangs (20140916224624)
|
10891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10892
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "mangs" ADD "favorite_color" varchar
|
10893
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140916224624"]]
|
10894
|
+
[1m[35m (0.7ms)[0m commit transaction
|
10895
|
+
Migrating to DeviseTokenAuthCreateEvilUsers (20140928231203)
|
10896
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10897
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb:48)
|
10898
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "evil_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "name" varchar, "nickname" varchar, "image" varchar, "provider" varchar, "uid" varchar DEFAULT '' NOT NULL, "tokens" text, "favorite_color" varchar, "created_at" datetime, "updated_at" datetime)
|
10899
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_evil_users_on_email" ON "evil_users" ("email")[0m
|
10900
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10901
|
+
FROM sqlite_master
|
10902
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10903
|
+
UNION ALL
|
10904
|
+
SELECT sql
|
10905
|
+
FROM sqlite_temp_master
|
10906
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10907
|
+
|
10908
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_evil_users_on_uid_and_provider" ON "evil_users" ("uid", "provider")[0m
|
10909
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10910
|
+
FROM sqlite_master
|
10911
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
10912
|
+
UNION ALL
|
10913
|
+
SELECT sql
|
10914
|
+
FROM sqlite_temp_master
|
10915
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
10916
|
+
|
10917
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10918
|
+
FROM sqlite_master
|
10919
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10920
|
+
UNION ALL
|
10921
|
+
SELECT sql
|
10922
|
+
FROM sqlite_temp_master
|
10923
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10924
|
+
[0m
|
10925
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_evil_users_on_reset_password_token" ON "evil_users" ("reset_password_token")
|
10926
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10927
|
+
FROM sqlite_master
|
10928
|
+
WHERE name='index_evil_users_on_reset_password_token' AND type='index'
|
10929
|
+
UNION ALL
|
10930
|
+
SELECT sql
|
10931
|
+
FROM sqlite_temp_master
|
10932
|
+
WHERE name='index_evil_users_on_reset_password_token' AND type='index'
|
10933
|
+
[0m
|
10934
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10935
|
+
FROM sqlite_master
|
10936
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
10937
|
+
UNION ALL
|
10938
|
+
SELECT sql
|
10939
|
+
FROM sqlite_temp_master
|
10940
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
10941
|
+
|
10942
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10943
|
+
FROM sqlite_master
|
10944
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10945
|
+
UNION ALL
|
10946
|
+
SELECT sql
|
10947
|
+
FROM sqlite_temp_master
|
10948
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
10949
|
+
[0m
|
10950
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_evil_users_on_confirmation_token" ON "evil_users" ("confirmation_token")
|
10951
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140928231203"]]
|
10952
|
+
[1m[35m (1.0ms)[0m commit transaction
|
10953
|
+
Migrating to DeviseTokenAuthCreateOnlyEmailUsers (20141222035835)
|
10954
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10955
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb:45)
|
10956
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "only_email_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "name" varchar, "nickname" varchar, "image" varchar, "email" varchar, "tokens" text, "created_at" datetime, "updated_at" datetime)
|
10957
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_only_email_users_on_email" ON "only_email_users" ("email")[0m
|
10958
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10959
|
+
FROM sqlite_master
|
10960
|
+
WHERE name='index_only_email_users_on_email' AND type='index'
|
10961
|
+
UNION ALL
|
10962
|
+
SELECT sql
|
10963
|
+
FROM sqlite_temp_master
|
10964
|
+
WHERE name='index_only_email_users_on_email' AND type='index'
|
10965
|
+
|
10966
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_only_email_users_on_uid_and_provider" ON "only_email_users" ("uid", "provider")[0m
|
10967
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222035835"]]
|
10968
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
10969
|
+
Migrating to DeviseTokenAuthCreateUnregisterableUsers (20141222053502)
|
10970
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10971
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb:45)
|
10972
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "unregisterable_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "provider" varchar NOT NULL, "uid" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "confirmation_token" varchar, "confirmed_at" datetime, "confirmation_sent_at" datetime, "unconfirmed_email" varchar, "name" varchar, "nickname" varchar, "image" varchar, "email" varchar, "tokens" text, "created_at" datetime, "updated_at" datetime) [0m
|
10973
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_unregisterable_users_on_email" ON "unregisterable_users" ("email")
|
10974
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10975
|
+
FROM sqlite_master
|
10976
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
10977
|
+
UNION ALL
|
10978
|
+
SELECT sql
|
10979
|
+
FROM sqlite_temp_master
|
10980
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
10981
|
+
[0m
|
10982
|
+
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_unregisterable_users_on_uid_and_provider" ON "unregisterable_users" ("uid", "provider")
|
10983
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
10984
|
+
FROM sqlite_master
|
10985
|
+
WHERE name='index_unregisterable_users_on_uid_and_provider' AND type='index'
|
10986
|
+
UNION ALL
|
10987
|
+
SELECT sql
|
10988
|
+
FROM sqlite_temp_master
|
10989
|
+
WHERE name='index_unregisterable_users_on_uid_and_provider' AND type='index'
|
10990
|
+
[0m
|
10991
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
10992
|
+
FROM sqlite_master
|
10993
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
10994
|
+
UNION ALL
|
10995
|
+
SELECT sql
|
10996
|
+
FROM sqlite_temp_master
|
10997
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
10998
|
+
|
10999
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_unregisterable_users_on_reset_password_token" ON "unregisterable_users" ("reset_password_token")[0m
|
11000
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141222053502"]]
|
11001
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
11002
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
11003
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11004
|
+
FROM sqlite_master
|
11005
|
+
WHERE name='index_evil_users_on_confirmation_token' AND type='index'
|
11006
|
+
UNION ALL
|
11007
|
+
SELECT sql
|
11008
|
+
FROM sqlite_temp_master
|
11009
|
+
WHERE name='index_evil_users_on_confirmation_token' AND type='index'
|
11010
|
+
[0m
|
11011
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11012
|
+
FROM sqlite_master
|
11013
|
+
WHERE name='index_evil_users_on_reset_password_token' AND type='index'
|
11014
|
+
UNION ALL
|
11015
|
+
SELECT sql
|
11016
|
+
FROM sqlite_temp_master
|
11017
|
+
WHERE name='index_evil_users_on_reset_password_token' AND type='index'
|
11018
|
+
|
11019
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11020
|
+
FROM sqlite_master
|
11021
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
11022
|
+
UNION ALL
|
11023
|
+
SELECT sql
|
11024
|
+
FROM sqlite_temp_master
|
11025
|
+
WHERE name='index_evil_users_on_uid_and_provider' AND type='index'
|
11026
|
+
[0m
|
11027
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11028
|
+
FROM sqlite_master
|
11029
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
11030
|
+
UNION ALL
|
11031
|
+
SELECT sql
|
11032
|
+
FROM sqlite_temp_master
|
11033
|
+
WHERE name='index_evil_users_on_email' AND type='index'
|
11034
|
+
|
11035
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11036
|
+
FROM sqlite_master
|
11037
|
+
WHERE name='index_mangs_on_confirmation_token' AND type='index'
|
11038
|
+
UNION ALL
|
11039
|
+
SELECT sql
|
11040
|
+
FROM sqlite_temp_master
|
11041
|
+
WHERE name='index_mangs_on_confirmation_token' AND type='index'
|
11042
|
+
[0m
|
11043
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11044
|
+
FROM sqlite_master
|
11045
|
+
WHERE name='index_mangs_on_reset_password_token' AND type='index'
|
11046
|
+
UNION ALL
|
11047
|
+
SELECT sql
|
11048
|
+
FROM sqlite_temp_master
|
11049
|
+
WHERE name='index_mangs_on_reset_password_token' AND type='index'
|
11050
|
+
|
11051
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11052
|
+
FROM sqlite_master
|
11053
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
11054
|
+
UNION ALL
|
11055
|
+
SELECT sql
|
11056
|
+
FROM sqlite_temp_master
|
11057
|
+
WHERE name='index_mangs_on_uid_and_provider' AND type='index'
|
11058
|
+
[0m
|
11059
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11060
|
+
FROM sqlite_master
|
11061
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
11062
|
+
UNION ALL
|
11063
|
+
SELECT sql
|
11064
|
+
FROM sqlite_temp_master
|
11065
|
+
WHERE name='index_mangs_on_email' AND type='index'
|
11066
|
+
|
11067
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11068
|
+
FROM sqlite_master
|
11069
|
+
WHERE name='index_only_email_users_on_uid_and_provider' AND type='index'
|
11070
|
+
UNION ALL
|
11071
|
+
SELECT sql
|
11072
|
+
FROM sqlite_temp_master
|
11073
|
+
WHERE name='index_only_email_users_on_uid_and_provider' AND type='index'
|
11074
|
+
[0m
|
11075
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11076
|
+
FROM sqlite_master
|
11077
|
+
WHERE name='index_only_email_users_on_email' AND type='index'
|
11078
|
+
UNION ALL
|
11079
|
+
SELECT sql
|
11080
|
+
FROM sqlite_temp_master
|
11081
|
+
WHERE name='index_only_email_users_on_email' AND type='index'
|
11082
|
+
|
11083
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11084
|
+
FROM sqlite_master
|
11085
|
+
WHERE name='index_unregisterable_users_on_reset_password_token' AND type='index'
|
11086
|
+
UNION ALL
|
11087
|
+
SELECT sql
|
11088
|
+
FROM sqlite_temp_master
|
11089
|
+
WHERE name='index_unregisterable_users_on_reset_password_token' AND type='index'
|
11090
|
+
[0m
|
11091
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11092
|
+
FROM sqlite_master
|
11093
|
+
WHERE name='index_unregisterable_users_on_uid_and_provider' AND type='index'
|
11094
|
+
UNION ALL
|
11095
|
+
SELECT sql
|
11096
|
+
FROM sqlite_temp_master
|
11097
|
+
WHERE name='index_unregisterable_users_on_uid_and_provider' AND type='index'
|
11098
|
+
|
11099
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11100
|
+
FROM sqlite_master
|
11101
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
11102
|
+
UNION ALL
|
11103
|
+
SELECT sql
|
11104
|
+
FROM sqlite_temp_master
|
11105
|
+
WHERE name='index_unregisterable_users_on_email' AND type='index'
|
11106
|
+
[0m
|
11107
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11108
|
+
FROM sqlite_master
|
11109
|
+
WHERE name='index_users_on_nickname' AND type='index'
|
11110
|
+
UNION ALL
|
11111
|
+
SELECT sql
|
11112
|
+
FROM sqlite_temp_master
|
11113
|
+
WHERE name='index_users_on_nickname' AND type='index'
|
11114
|
+
|
11115
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11116
|
+
FROM sqlite_master
|
11117
|
+
WHERE name='index_users_on_confirmation_token' AND type='index'
|
11118
|
+
UNION ALL
|
11119
|
+
SELECT sql
|
11120
|
+
FROM sqlite_temp_master
|
11121
|
+
WHERE name='index_users_on_confirmation_token' AND type='index'
|
11122
|
+
[0m
|
11123
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11124
|
+
FROM sqlite_master
|
11125
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
11126
|
+
UNION ALL
|
11127
|
+
SELECT sql
|
11128
|
+
FROM sqlite_temp_master
|
11129
|
+
WHERE name='index_users_on_reset_password_token' AND type='index'
|
11130
|
+
|
11131
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
11132
|
+
FROM sqlite_master
|
11133
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
11134
|
+
UNION ALL
|
11135
|
+
SELECT sql
|
11136
|
+
FROM sqlite_temp_master
|
11137
|
+
WHERE name='index_users_on_uid_and_provider' AND type='index'
|
11138
|
+
[0m
|
11139
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
11140
|
+
FROM sqlite_master
|
11141
|
+
WHERE name='index_users_on_email' AND type='index'
|
11142
|
+
UNION ALL
|
11143
|
+
SELECT sql
|
11144
|
+
FROM sqlite_temp_master
|
11145
|
+
WHERE name='index_users_on_email' AND type='index'
|
11146
|
+
|
11147
|
+
|
11148
|
+
|
11149
|
+
Started GET "/auth/validate_token" for 127.0.0.1 at 2015-02-08 21:37:51 -0600
|
11150
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11151
|
+
Processing by DeviseTokenAuth::TokenValidationsController#validate_token as HTML
|
11152
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "468037"]]
|
11153
|
+
Completed 401 Unauthorized in 10ms (Views: 0.2ms | ActiveRecord: 0.4ms)
|
11154
|
+
|
11155
|
+
|
11156
|
+
Started POST "/auth" for 127.0.0.1 at 2015-02-08 21:41:45 -0600
|
11157
|
+
Processing by DeviseTokenAuth::RegistrationsController#create as HTML
|
11158
|
+
Parameters: {"email"=>"test@test.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "nickname"=>"stimpy", "confirm_success_url"=>"http://ng-token-auth.dev/", "config_name"=>"default", "registration"=>{"email"=>"test@test.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "nickname"=>"stimpy", "confirm_success_url"=>"http://ng-token-auth.dev/", "config_name"=>"default"}}
|
11159
|
+
Unpermitted parameters: confirm_success_url, config_name, registration
|
11160
|
+
Unpermitted parameters: confirm_success_url, config_name, registration
|
11161
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11162
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."provider" = ? AND "users"."email" = ? [["provider", "email"], ["email", "test@test.com"]]
|
11163
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."confirmation_token" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["confirmation_token", "d62efd7d6c3c8ac407f2237c827b9e3cc234dfd17b10a0acaa87c79815184a20"]]
|
11164
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "nickname", "encrypted_password", "tokens", "provider", "uid", "created_at", "updated_at", "confirmation_token", "confirmation_sent_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["email", "test@test.com"], ["nickname", "stimpy"], ["encrypted_password", "$2a$10$YM.HPaZbMuaG9LLqCN9JmOMTqlAzRKXHCkcIXAnGAIvlyq5jglqfy"], ["tokens", "{}"], ["provider", "email"], ["uid", "test@test.com"], ["created_at", "2015-02-09 03:41:45.824510"], ["updated_at", "2015-02-09 03:41:45.824510"], ["confirmation_token", "d62efd7d6c3c8ac407f2237c827b9e3cc234dfd17b10a0acaa87c79815184a20"], ["confirmation_sent_at", "2015-02-09 03:41:46.011096"]]
|
11165
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
11166
|
+
Rendered /Users/lynn/Code/Auth/devise_token_auth/app/views/devise/mailer/confirmation_instructions.html.erb (4.6ms)
|
11167
|
+
|
11168
|
+
Devise::Mailer#confirmation_instructions: processed outbound mail in 459.9ms
|
11169
|
+
|
11170
|
+
Sent mail to test@test.com (158.1ms)
|
11171
|
+
Date: Sun, 08 Feb 2015 21:41:46 -0600
|
11172
|
+
From: please-change-me-at-config-initializers-devise@example.com
|
11173
|
+
Reply-To: please-change-me-at-config-initializers-devise@example.com
|
11174
|
+
To: test@test.com
|
11175
|
+
Message-ID: <54d82c7a77f1e_f0123fd9c9865be01543e@tests-MacBook-Pro.local.mail>
|
11176
|
+
Subject: Confirmation instructions
|
11177
|
+
Mime-Version: 1.0
|
11178
|
+
Content-Type: text/html;
|
11179
|
+
charset=UTF-8
|
11180
|
+
Content-Transfer-Encoding: 7bit
|
11181
|
+
client-config: default
|
11182
|
+
redirect-url: http://ng-token-auth.dev/
|
11183
|
+
|
11184
|
+
<p>Welcome test@test.com!</p>
|
11185
|
+
|
11186
|
+
<p>You can confirm your account email through the link below:</p>
|
11187
|
+
|
11188
|
+
<p><a href="http://devise-token-auth.dev/auth/confirmation?config=default&confirmation_token=85s1Z7RHcgkSbsXUxHbp&redirect_url=http%3A%2F%2Fng-token-auth.dev%2F">Confirm my account</a></p>
|
11189
|
+
|
11190
|
+
Completed 200 OK in 911ms (Views: 0.3ms | ActiveRecord: 5.1ms)
|
11191
|
+
|
11192
|
+
|
11193
|
+
Started GET "/auth/confirmation?config=default&confirmation_token=85s1Z7RHcgkSbsXUxHbp&redirect_url=http%3A%2F%2Fng-token-auth.dev%2F" for 127.0.0.1 at 2015-02-08 21:42:08 -0600
|
11194
|
+
Processing by DeviseTokenAuth::ConfirmationsController#show as HTML
|
11195
|
+
Parameters: {"config"=>"default", "confirmation_token"=>"85s1Z7RHcgkSbsXUxHbp", "redirect_url"=>"http://ng-token-auth.dev/"}
|
11196
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = ? ORDER BY "users"."id" ASC LIMIT 1 [["confirmation_token", "d62efd7d6c3c8ac407f2237c827b9e3cc234dfd17b10a0acaa87c79815184a20"]]
|
11197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11198
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "confirmation_token" = ?, "confirmed_at" = ?, "updated_at" = ? WHERE "users"."id" = ? [["confirmation_token", nil], ["confirmed_at", "2015-02-09 03:42:08.017984"], ["updated_at", "2015-02-09 03:42:08.019447"], ["id", 1]]
|
11199
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
11200
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11201
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tokens" = ?, "confirmation_token" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tokens", "{\"YfXawkcQqvyFllxtSFaCFw\":{\"token\":\"$2a$10$mwmNCJ9DhrvYpMOEhvfwFe3pHlsVa7FMs/G65usoFbQaiS9lSg6Ra\",\"expiry\":1424662928}}"], ["confirmation_token", "85s1Z7RHcgkSbsXUxHbp"], ["updated_at", "2015-02-09 03:42:08.090271"], ["id", 1]]
|
11202
|
+
[1m[35m (1.0ms)[0m commit transaction
|
11203
|
+
Redirected to http://ng-token-auth.dev/#?account_confirmation_success=true&client_id=YfXawkcQqvyFllxtSFaCFw&config=default&expiry=&token=mcjr_UpcsYhPjLg9YeP-yw&uid=test%40test.com
|
11204
|
+
Completed 302 Found in 82ms (ActiveRecord: 3.9ms)
|
11205
|
+
|
11206
|
+
|
11207
|
+
Started GET "/auth/validate_token" for 127.0.0.1 at 2015-02-08 21:42:08 -0600
|
11208
|
+
Processing by DeviseTokenAuth::TokenValidationsController#validate_token as HTML
|
11209
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1[0m [["uid", "test@test.com"]]
|
11210
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11211
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [0m [["id", 1]]
|
11212
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{\"YfXawkcQqvyFllxtSFaCFw\":{\"token\":\"$2a$10$hLwFkAdMo8umxo5PNcREWOpA7q9uKpotjMLZRVkjuxfcqg4tJimm6\",\"expiry\":1424662928,\"last_token\":\"$2a$10$mwmNCJ9DhrvYpMOEhvfwFe3pHlsVa7FMs/G65usoFbQaiS9lSg6Ra\",\"updated_at\":\"2015-02-08T21:42:08.521-06:00\"}}"], ["updated_at", "2015-02-09 03:42:08.524484"], ["id", 1]]
|
11213
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
11214
|
+
Completed 200 OK in 145ms (Views: 0.2ms | ActiveRecord: 2.6ms)
|
11215
|
+
|
11216
|
+
|
11217
|
+
Started DELETE "/auth/sign_out" for 127.0.0.1 at 2015-02-08 21:42:17 -0600
|
11218
|
+
Processing by DeviseTokenAuth::SessionsController#destroy as HTML
|
11219
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "test@test.com"]]
|
11220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11221
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{}"], ["updated_at", "2015-02-09 03:42:17.532121"], ["id", 1]]
|
11222
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
11223
|
+
Completed 200 OK in 70ms (Views: 0.2ms | ActiveRecord: 3.1ms)
|
11224
|
+
|
11225
|
+
|
11226
|
+
Started POST "/auth/sign_in" for 127.0.0.1 at 2015-02-08 21:42:25 -0600
|
11227
|
+
Processing by DeviseTokenAuth::SessionsController#create as HTML
|
11228
|
+
Parameters: {"nickname"=>"stimpy", "password"=>"[FILTERED]", "session"=>{"nickname"=>"stimpy", "password"=>"[FILTERED]"}}
|
11229
|
+
Unpermitted parameter: session
|
11230
|
+
Unpermitted parameter: session
|
11231
|
+
Unpermitted parameter: session
|
11232
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE (nickname = 'stimpy' AND provider='email') ORDER BY "users"."id" ASC LIMIT 1
|
11233
|
+
Unpermitted parameter: session
|
11234
|
+
Unpermitted parameter: session
|
11235
|
+
Completed 401 Unauthorized in 65ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
11236
|
+
|
11237
|
+
|
11238
|
+
Started POST "/auth/sign_in" for 127.0.0.1 at 2015-02-08 21:42:57 -0600
|
11239
|
+
Processing by DeviseTokenAuth::SessionsController#create as HTML
|
11240
|
+
Parameters: {"nickname"=>"stimpy", "password"=>"[FILTERED]", "session"=>{"nickname"=>"stimpy", "password"=>"[FILTERED]"}}
|
11241
|
+
Unpermitted parameter: session
|
11242
|
+
Unpermitted parameter: session
|
11243
|
+
Unpermitted parameter: session
|
11244
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE (nickname = 'stimpy' AND provider='email') ORDER BY "users"."id" ASC LIMIT 1[0m
|
11245
|
+
Unpermitted parameter: session
|
11246
|
+
Unpermitted parameter: session
|
11247
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11248
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tokens", "{\"_UaMxm37nuaLXQuRKyOgyg\":{\"token\":\"$2a$10$50y.NjzXnWb2WdRRFyu0autCCwrrVQbCqPLUCEqPnK8q9PNifNNmm\",\"expiry\":1424662977}}"], ["updated_at", "2015-02-09 03:42:57.637986"], ["id", 1]]
|
11249
|
+
[1m[35m (0.6ms)[0m commit transaction
|
11250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11251
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2015-02-09 03:42:57.642208"], ["current_sign_in_at", "2015-02-09 03:42:57.642208"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2015-02-09 03:42:57.647095"], ["id", 1]]
|
11252
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
11253
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11254
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [0m [["id", 1]]
|
11255
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{\"_UaMxm37nuaLXQuRKyOgyg\":{\"token\":\"$2a$10$Gxai0ka/7lkSujPq6EUOF.e6Y12Oy/vvLB8yZuVJH0y8SJU7wX3sC\",\"expiry\":1424662977,\"last_token\":\"$2a$10$50y.NjzXnWb2WdRRFyu0autCCwrrVQbCqPLUCEqPnK8q9PNifNNmm\",\"updated_at\":\"2015-02-08T21:42:57.714-06:00\"}}"], ["updated_at", "2015-02-09 03:42:57.717236"], ["id", 1]]
|
11256
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11257
|
+
Completed 200 OK in 211ms (Views: 0.3ms | ActiveRecord: 3.5ms)
|
11258
|
+
|
11259
|
+
|
11260
|
+
Started DELETE "/auth/sign_out" for 127.0.0.1 at 2015-02-08 21:43:19 -0600
|
11261
|
+
Processing by DeviseTokenAuth::SessionsController#destroy as HTML
|
11262
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1 [["uid", "test@test.com"]]
|
11263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11264
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{}"], ["updated_at", "2015-02-09 03:43:19.607116"], ["id", 1]]
|
11265
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
11266
|
+
Completed 200 OK in 71ms (Views: 0.1ms | ActiveRecord: 2.5ms)
|
11267
|
+
|
11268
|
+
|
11269
|
+
Started POST "/auth/sign_in" for 127.0.0.1 at 2015-02-08 21:43:31 -0600
|
11270
|
+
Processing by DeviseTokenAuth::SessionsController#create as HTML
|
11271
|
+
Parameters: {"nickname"=>"stimpy", "password"=>"[FILTERED]", "email"=>"test@test.com", "session"=>{"nickname"=>"stimpy", "password"=>"[FILTERED]", "email"=>"test@test.com"}}
|
11272
|
+
Unpermitted parameter: session
|
11273
|
+
Unpermitted parameter: session
|
11274
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE (email = 'test@test.com' AND provider='email') ORDER BY "users"."id" ASC LIMIT 1
|
11275
|
+
Unpermitted parameter: session
|
11276
|
+
Unpermitted parameter: session
|
11277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11278
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{\"z0RhXZvc_PMbLy8Yzt6EHA\":{\"token\":\"$2a$10$n1coM6EgYmB2CkILZBInheQpNIiA2G41ZTMeISq07hUiGqwBny99O\",\"expiry\":1424663011}}"], ["updated_at", "2015-02-09 03:43:31.822534"], ["id", 1]]
|
11279
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11280
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11281
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", "2015-02-09 03:43:31.826970"], ["sign_in_count", 2], ["updated_at", "2015-02-09 03:43:31.831028"], ["id", 1]]
|
11282
|
+
[1m[35m (0.6ms)[0m commit transaction
|
11283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11284
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
11285
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tokens", "{\"z0RhXZvc_PMbLy8Yzt6EHA\":{\"token\":\"$2a$10$uVlK8p.WJzCuFxMJHrEwbuvv/sMwizobqluEW/QZS41Fhtz1wunTG\",\"expiry\":1424663011,\"last_token\":\"$2a$10$n1coM6EgYmB2CkILZBInheQpNIiA2G41ZTMeISq07hUiGqwBny99O\",\"updated_at\":\"2015-02-08T21:43:31.898-06:00\"}}"], ["updated_at", "2015-02-09 03:43:31.901843"], ["id", 1]]
|
11286
|
+
[1m[35m (0.9ms)[0m commit transaction
|
11287
|
+
Completed 200 OK in 213ms (Views: 0.2ms | ActiveRecord: 3.7ms)
|
11288
|
+
|
11289
|
+
|
11290
|
+
Started DELETE "/auth/sign_out" for 127.0.0.1 at 2015-02-08 21:43:41 -0600
|
11291
|
+
Processing by DeviseTokenAuth::SessionsController#destroy as HTML
|
11292
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."uid" = ? LIMIT 1[0m [["uid", "test@test.com"]]
|
11293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11294
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tokens", "{}"], ["updated_at", "2015-02-09 03:43:42.031698"], ["id", 1]]
|
11295
|
+
[1m[35m (1.7ms)[0m commit transaction
|
11296
|
+
Completed 200 OK in 70ms (Views: 0.1ms | ActiveRecord: 2.1ms)
|
11297
|
+
|
11298
|
+
|
11299
|
+
Started POST "/auth/sign_in" for 127.0.0.1 at 2015-02-08 21:43:46 -0600
|
11300
|
+
Processing by DeviseTokenAuth::SessionsController#create as HTML
|
11301
|
+
Parameters: {"nickname"=>"", "password"=>"[FILTERED]", "email"=>"test@test.com", "session"=>{"nickname"=>"", "password"=>"[FILTERED]", "email"=>"test@test.com"}}
|
11302
|
+
Unpermitted parameter: session
|
11303
|
+
Unpermitted parameter: session
|
11304
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE (email = 'test@test.com' AND provider='email') ORDER BY "users"."id" ASC LIMIT 1[0m
|
11305
|
+
Unpermitted parameter: session
|
11306
|
+
Unpermitted parameter: session
|
11307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11308
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tokens", "{\"7g4_HX8s5TrY70HgLxwlWg\":{\"token\":\"$2a$10$ILoXtiIk7b3SbaHFkHkwAeb64tqorsQ/yj.q7dCIKntmoI32d/sYq\",\"expiry\":1424663026}}"], ["updated_at", "2015-02-09 03:43:46.769555"], ["id", 1]]
|
11309
|
+
[1m[35m (1.0ms)[0m commit transaction
|
11310
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11311
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2015-02-09 03:43:31.826970"], ["current_sign_in_at", "2015-02-09 03:43:46.774203"], ["sign_in_count", 3], ["updated_at", "2015-02-09 03:43:46.778184"], ["id", 1]]
|
11312
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
11313
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11314
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [0m [["id", 1]]
|
11315
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "tokens" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tokens", "{\"7g4_HX8s5TrY70HgLxwlWg\":{\"token\":\"$2a$10$dXpdvZGjmr1ppw2moM9D9.7SmRPXV0R6bxbYrDM0pUMdu749ftGvG\",\"expiry\":1424663026,\"last_token\":\"$2a$10$ILoXtiIk7b3SbaHFkHkwAeb64tqorsQ/yj.q7dCIKntmoI32d/sYq\",\"updated_at\":\"2015-02-08T21:43:46.846-06:00\"}}"], ["updated_at", "2015-02-09 03:43:46.849899"], ["id", 1]]
|
11316
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11317
|
+
Completed 200 OK in 213ms (Views: 0.2ms | ActiveRecord: 3.9ms)
|
11318
|
+
[1m[36m (27.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
11319
|
+
[1m[35m (31.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
11320
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
11321
|
+
Migrating to DeviseTokenAuthCreateUsers (20140715061447)
|
11322
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb:47)
|
11323
|
+
[1m[35m (20.9ms)[0m CREATE TABLE `users` (`id` int(11) auto_increment PRIMARY KEY, `email` varchar(255), `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `reset_password_redirect_url` varchar(255), `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `confirm_success_url` varchar(255), `unconfirmed_email` varchar(255), `name` varchar(255), `nickname` varchar(255), `image` varchar(255), `provider` varchar(255), `uid` varchar(255) DEFAULT '' NOT NULL, `tokens` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
11324
|
+
[1m[36m (28.2ms)[0m [1mCREATE INDEX `index_users_on_email` ON `users` (`email`) [0m
|
11325
|
+
[1m[35m (21.1ms)[0m CREATE UNIQUE INDEX `index_users_on_uid_and_provider` ON `users` (`uid`, `provider`)
|
11326
|
+
[1m[36m (21.5ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`) [0m
|
11327
|
+
[1m[35m (26.7ms)[0m CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)
|
11328
|
+
[1m[36m (26.9ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_nickname` ON `users` (`nickname`) [0m
|
11329
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11330
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140715061447')[0m
|
11331
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11332
|
+
Migrating to DeviseTokenAuthCreateMangs (20140715061805)
|
11333
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb:47)
|
11334
|
+
[1m[36m (14.2ms)[0m [1mCREATE TABLE `mangs` (`id` int(11) auto_increment PRIMARY KEY, `email` varchar(255), `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `reset_password_redirect_url` varchar(255), `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `confirm_success_url` varchar(255), `unconfirmed_email` varchar(255), `name` varchar(255), `nickname` varchar(255), `image` varchar(255), `provider` varchar(255), `uid` varchar(255) DEFAULT '' NOT NULL, `tokens` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
11335
|
+
[1m[35m (15.3ms)[0m CREATE INDEX `index_mangs_on_email` ON `mangs` (`email`)
|
11336
|
+
[1m[36m (26.6ms)[0m [1mCREATE UNIQUE INDEX `index_mangs_on_uid_and_provider` ON `mangs` (`uid`, `provider`) [0m
|
11337
|
+
[1m[35m (23.4ms)[0m CREATE UNIQUE INDEX `index_mangs_on_reset_password_token` ON `mangs` (`reset_password_token`)
|
11338
|
+
[1m[36m (27.3ms)[0m [1mCREATE UNIQUE INDEX `index_mangs_on_confirmation_token` ON `mangs` (`confirmation_token`) [0m
|
11339
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11340
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20140715061805')[0m
|
11341
|
+
[1m[35m (0.2ms)[0m COMMIT
|
11342
|
+
Migrating to AddOperatingThetanToUser (20140829044006)
|
11343
|
+
[1m[36m (48.8ms)[0m [1mALTER TABLE `users` ADD `operating_thetan` int(11)[0m
|
11344
|
+
[1m[35m (53.1ms)[0m ALTER TABLE `users` ADD `favorite_color` varchar(255)
|
11345
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11346
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140829044006')
|
11347
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
11348
|
+
Migrating to AddFavoriteColorToMangs (20140916224624)
|
11349
|
+
[1m[35m (43.8ms)[0m ALTER TABLE `mangs` ADD `favorite_color` varchar(255)
|
11350
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11351
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140916224624')
|
11352
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
11353
|
+
Migrating to DeviseTokenAuthCreateEvilUsers (20140928231203)
|
11354
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb:48)
|
11355
|
+
[1m[35m (23.4ms)[0m CREATE TABLE `evil_users` (`id` int(11) auto_increment PRIMARY KEY, `email` varchar(255), `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `name` varchar(255), `nickname` varchar(255), `image` varchar(255), `provider` varchar(255), `uid` varchar(255) DEFAULT '' NOT NULL, `tokens` text, `favorite_color` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
11356
|
+
[1m[36m (17.5ms)[0m [1mCREATE INDEX `index_evil_users_on_email` ON `evil_users` (`email`) [0m
|
11357
|
+
[1m[35m (26.5ms)[0m CREATE UNIQUE INDEX `index_evil_users_on_uid_and_provider` ON `evil_users` (`uid`, `provider`)
|
11358
|
+
[1m[36m (17.6ms)[0m [1mCREATE UNIQUE INDEX `index_evil_users_on_reset_password_token` ON `evil_users` (`reset_password_token`) [0m
|
11359
|
+
[1m[35m (22.4ms)[0m CREATE UNIQUE INDEX `index_evil_users_on_confirmation_token` ON `evil_users` (`confirmation_token`)
|
11360
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11361
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20140928231203')
|
11362
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
11363
|
+
Migrating to DeviseTokenAuthCreateOnlyEmailUsers (20141222035835)
|
11364
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb:45)
|
11365
|
+
[1m[35m (29.4ms)[0m CREATE TABLE `only_email_users` (`id` int(11) auto_increment PRIMARY KEY, `provider` varchar(255) NOT NULL, `uid` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `name` varchar(255), `nickname` varchar(255), `image` varchar(255), `email` varchar(255), `tokens` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
11366
|
+
[1m[36m (22.8ms)[0m [1mCREATE INDEX `index_only_email_users_on_email` ON `only_email_users` (`email`) [0m
|
11367
|
+
[1m[35m (28.3ms)[0m CREATE UNIQUE INDEX `index_only_email_users_on_uid_and_provider` ON `only_email_users` (`uid`, `provider`)
|
11368
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11369
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20141222035835')
|
11370
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
11371
|
+
Migrating to DeviseTokenAuthCreateUnregisterableUsers (20141222053502)
|
11372
|
+
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lynn/Code/Auth/devise_token_auth/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb:45)
|
11373
|
+
[1m[35m (25.0ms)[0m CREATE TABLE `unregisterable_users` (`id` int(11) auto_increment PRIMARY KEY, `provider` varchar(255) NOT NULL, `uid` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0 NOT NULL, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `name` varchar(255), `nickname` varchar(255), `image` varchar(255), `email` varchar(255), `tokens` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
11374
|
+
[1m[36m (15.2ms)[0m [1mCREATE INDEX `index_unregisterable_users_on_email` ON `unregisterable_users` (`email`) [0m
|
11375
|
+
[1m[35m (30.2ms)[0m CREATE UNIQUE INDEX `index_unregisterable_users_on_uid_and_provider` ON `unregisterable_users` (`uid`, `provider`)
|
11376
|
+
[1m[36m (23.9ms)[0m [1mCREATE UNIQUE INDEX `index_unregisterable_users_on_reset_password_token` ON `unregisterable_users` (`reset_password_token`) [0m
|
11377
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11378
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20141222053502')[0m
|
11379
|
+
[1m[35m (0.3ms)[0m COMMIT
|
11380
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
11381
|
+
[1m[35m (1.0ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
11382
|
+
,fk.referenced_column_name as 'primary_key'
|
11383
|
+
,fk.column_name as 'column'
|
11384
|
+
,fk.constraint_name as 'name'
|
11385
|
+
FROM information_schema.key_column_usage fk
|
11386
|
+
WHERE fk.referenced_column_name is not null
|
11387
|
+
AND fk.table_schema = 'devise_token_auth_development'
|
11388
|
+
AND fk.table_name = 'evil_users'
|
11389
|
+
|
11390
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `evil_users`[0m
|
11391
|
+
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
11392
|
+
,fk.referenced_column_name as 'primary_key'
|
11393
|
+
,fk.column_name as 'column'
|
11394
|
+
,fk.constraint_name as 'name'
|
11395
|
+
FROM information_schema.key_column_usage fk
|
11396
|
+
WHERE fk.referenced_column_name is not null
|
11397
|
+
AND fk.table_schema = 'devise_token_auth_development'
|
11398
|
+
AND fk.table_name = 'mangs'
|
11399
|
+
|
11400
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `mangs`[0m
|
11401
|
+
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
11402
|
+
,fk.referenced_column_name as 'primary_key'
|
11403
|
+
,fk.column_name as 'column'
|
11404
|
+
,fk.constraint_name as 'name'
|
11405
|
+
FROM information_schema.key_column_usage fk
|
11406
|
+
WHERE fk.referenced_column_name is not null
|
11407
|
+
AND fk.table_schema = 'devise_token_auth_development'
|
11408
|
+
AND fk.table_name = 'only_email_users'
|
11409
|
+
|
11410
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `only_email_users`[0m
|
11411
|
+
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
11412
|
+
,fk.referenced_column_name as 'primary_key'
|
11413
|
+
,fk.column_name as 'column'
|
11414
|
+
,fk.constraint_name as 'name'
|
11415
|
+
FROM information_schema.key_column_usage fk
|
11416
|
+
WHERE fk.referenced_column_name is not null
|
11417
|
+
AND fk.table_schema = 'devise_token_auth_development'
|
11418
|
+
AND fk.table_name = 'unregisterable_users'
|
11419
|
+
|
11420
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `unregisterable_users`[0m
|
11421
|
+
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
11422
|
+
,fk.referenced_column_name as 'primary_key'
|
11423
|
+
,fk.column_name as 'column'
|
11424
|
+
,fk.constraint_name as 'name'
|
11425
|
+
FROM information_schema.key_column_usage fk
|
11426
|
+
WHERE fk.referenced_column_name is not null
|
11427
|
+
AND fk.table_schema = 'devise_token_auth_development'
|
11428
|
+
AND fk.table_name = 'users'
|
11429
|
+
|
11430
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `users`[0m
|