spec/dummy/log/test.log in api_user_auth-0.1.4 vs spec/dummy/log/test.log in api_user_auth-0.1.5

- old
+ new

@@ -67986,5 +67986,1335 @@ Processing by ApiUserAuth::AuthController#login as HTML Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.3ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{2da241c4-419d-4434-88c6-f367abe7508d}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "google"], ["created_at", "2018-07-27 13:36:22.266316"], ["updated_at", "2018-07-27 13:36:22.266316"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.5ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 123.3ms +Sent mail to user@mail.com (3.0ms) +Date: Fri, 27 Jul 2018 16:36:22 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd66c744_7f958d6648367b9@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 190ms (Views: 0.1ms | ActiveRecord: 3.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{2da241c4-419d-4434-88c6-f367abe7508d,a26eef56-36fb-4e0b-bae4-90e3fb8cf8d5}"], ["updated_at", "2018-07-27 13:36:22.450099"], ["id", 309]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 4.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} +Completed 422 Unprocessable Entity in 169ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google2", "token"=>"token"} +Completed 422 Unprocessable Entity in 170ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} +Completed 422 Unprocessable Entity in 303ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook2", "token"=>"token"} +Completed 422 Unprocessable Entity in 299ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.7ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.6ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.8ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{56e3032d-ba1d-4bf3-9d53-37c2ef5d1d30}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "facebook"], ["created_at", "2018-07-27 13:36:23.435776"], ["updated_at", "2018-07-27 13:36:23.435776"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.2ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.7ms +Sent mail to user@mail.com (4.1ms) +Date: Fri, 27 Jul 2018 16:36:23 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd76c737_7f958d664836879@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 2.8ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.5ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.5ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{56e3032d-ba1d-4bf3-9d53-37c2ef5d1d30,0c795635-afa9-4fe2-b334-4e2a3bef2f8a}"], ["updated_at", "2018-07-27 13:36:23.457687"], ["id", 310]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 4.6ms) +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{023c2ba7-be46-453f-bbda-7f834682305f}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "instagram"], ["created_at", "2018-07-27 13:36:23.469029"], ["updated_at", "2018-07-27 13:36:23.469029"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 1.2ms +Sent mail to user@mail.com (1.4ms) +Date: Fri, 27 Jul 2018 16:36:23 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd7735a9_7f958d66483699d@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{023c2ba7-be46-453f-bbda-7f834682305f,5df64f03-88bd-483a-aff2-dacd894b6f00}"], ["updated_at", "2018-07-27 13:36:23.478195"], ["id", 311]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 1.8ms) +  (0.4ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} +Completed 422 Unprocessable Entity in 391ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram2", "token"=>"token"} +Completed 422 Unprocessable Entity in 359ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.7ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{85de3c45-55e8-4532-8d7c-a4d88cf8324a}"], ["created_at", "2018-07-27 13:36:24.254155"], ["updated_at", "2018-07-27 13:36:24.254155"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.8ms +Sent mail to user@mail.com (4.1ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd83fff0_7f958d66483707c@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.6ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{85de3c45-55e8-4532-8d7c-a4d88cf8324a,313af2c2-db9a-4f85-b776-988806b5d6f9}"], ["updated_at", "2018-07-27 13:36:24.275141"], ["id", 312]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.6ms) + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.4ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{c7826c6a-ddd2-448b-895e-80d4a92125c1}"], ["created_at", "2018-07-27 13:36:24.284655"], ["updated_at", "2018-07-27 13:36:24.284655"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 1.3ms +Sent mail to user@mail.com (1.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd8467de_7f958d6648371f2@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user2@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user2@mail.com"], ["LIMIT", 1]] +Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{983287f2-deed-45a5-b79c-892ef150a340}"], ["created_at", "2018-07-27 13:36:24.300303"], ["updated_at", "2018-07-27 13:36:24.300303"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.9ms +Sent mail to user@mail.com (1.3ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd849fd1_7f958d66483726e@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "123456"], ["updated_at", "2018-07-27 13:36:24.304451"], ["id", 314]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123456", "email"=>"user1@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user1@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123457", "email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.4ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.4ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123457", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{0ada209e-c824-48dd-9c91-9c5eb6911482}"], ["created_at", "2018-07-27 13:36:24.313358"], ["updated_at", "2018-07-27 13:36:24.313358"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.2ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd84d0dc_7f958d66483734d@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.3ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "123456"], ["updated_at", "2018-07-27 13:36:24.316812"], ["id", 315]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123456", "email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "encrypted_password" = $1, "auth_tokens" = $2, "updated_at" = $3 WHERE "api_user_auth_auth_users"."id" = $4 [["encrypted_password", "12ade6a91f185f6f2901c1a542fea73a4c9e3598f6a4dfd18e2c3338eaf1d306"], ["auth_tokens", "{0ada209e-c824-48dd-9c91-9c5eb6911482,b676660a-9cc5-473d-babe-8676d4bf341a}"], ["updated_at", "2018-07-27 13:36:24.319568"], ["id", 315]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.6ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 315], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com"} +Completed 422 Unprocessable Entity in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{bd9e538d-ac80-42f7-aa14-0dbad431a9f2}"], ["created_at", "2018-07-27 13:36:24.333465"], ["updated_at", "2018-07-27 13:36:24.333465"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.1ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd852009_7f958d6648374ef@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{d653745d-919e-4367-a7dd-1bfc71d258e0}"], ["created_at", "2018-07-27 13:36:24.351315"], ["updated_at", "2018-07-27 13:36:24.351315"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (0.8ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd8563f1_7f958d6648375fa@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{ee37d5b6-1afc-4e13-9d58-922b962cc57e}"], ["created_at", "2018-07-27 13:36:24.357658"], ["updated_at", "2018-07-27 13:36:24.357658"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd857ca1_7f958d664837657@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."auth_user_id" = $1 [["auth_user_id", 318]] +Processing by ApiUserAuth::AuthController#add_provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('ee37d5b6-1afc-4e13-9d58-922b962cc57e' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 1], ["user_id", "102030"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Create (0.3ms) INSERT INTO "api_user_auth_provider_tokens" ("auth_user_id", "provider", "user_id", "user_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_user_id", 318], ["provider", 1], ["user_id", "102030"], ["user_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\",\"provider\":\"google\",\"id\":\"102030\"}"], ["created_at", "2018-07-27 13:36:24.376037"], ["updated_at", "2018-07-27 13:36:24.376037"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 2.2ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."auth_user_id" = $1 [["auth_user_id", 318]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 1], ["user_id", "102030"], ["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 318], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{ee37d5b6-1afc-4e13-9d58-922b962cc57e,ea9f842f-f585-4d43-ba80-d1560bb8938e}"], ["updated_at", "2018-07-27 13:36:24.380560"], ["id", 318]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 3.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{915b53a3-7f0b-4e33-b031-f704a79b1ebf}"], ["created_at", "2018-07-27 13:36:24.390009"], ["updated_at", "2018-07-27 13:36:24.390009"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd85fb39_7f958d6648377de@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#forgot_password as HTML + Parameters: {"email"=>"user1@mail.com"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user1@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 319], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{40fb2616-1ea2-417a-8ff7-82274e1b0a00}"], ["created_at", "2018-07-27 13:36:24.396643"], ["updated_at", "2018-07-27 13:36:24.396643"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (1.0ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd8614b6_7f958d664837845@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#forgot_password as HTML + Parameters: {"email"=>"user@mail.com"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.3ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "347585"], ["updated_at", "2018-07-27 13:36:24.401050"], ["id", 320]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb (0.3ms) +ApiUserAuth::ForgotPasswordMailer#reset_code: processed outbound mail in 6.0ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd86439b_7f958d66483794d@merkulov.mail> +Subject: Password Code Reset +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +user@mail.com +</br> +<strong>347585</strong> +Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.7ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 320], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{7affad40-4fce-4c05-94e8-40ff0acd7550}"], ["created_at", "2018-07-27 13:36:24.414399"], ["updated_at", "2018-07-27 13:36:24.414399"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd865aab_7f958d664838098@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#logout as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('8fdc6ab3-1705-4eee-947e-39dbde61ad1d' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 321], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{1daa5aa4-866a-447a-82ec-8a9d168a4faf}"], ["created_at", "2018-07-27 13:36:24.421260"], ["updated_at", "2018-07-27 13:36:24.421260"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd86753d_7f958d664838158@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#logout as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('1daa5aa4-866a-447a-82ec-8a9d168a4faf' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{}"], ["updated_at", "2018-07-27 13:36:24.425594"], ["id", 322]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.6ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 322], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.4ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{523fe4c0-c157-4f27-9318-0dffef4e1501}"], ["created_at", "2018-07-27 13:36:24.432179"], ["updated_at", "2018-07-27 13:36:24.432179"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd86a174_7f958d6648382dd@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{720345ff-758b-487b-af7f-4d9d6b68cf45}"], ["created_at", "2018-07-27 13:36:24.437971"], ["updated_at", "2018-07-27 13:36:24.437971"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd86b6a4_7f958d664838363@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by TestController#index as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('720345ff-758b-487b-af7f-4d9d6b68cf45' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{707fa8cb-ffbb-4f30-bcfe-c00253a0b6ab}"], ["created_at", "2018-07-27 13:36:24.445275"], ["updated_at", "2018-07-27 13:36:24.445275"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (1.1ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b1fd86d2e4_7f958d664838416@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by TestController#index as HTML +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by TestController#index as HTML +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by TestController#index as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('6aac4ca8-ab45-40f7-aa49-b6716a6d631a' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "10101010@facebook.com"], ["encrypted_password", "18b331aa30c9b4042df27da1a431c16ff61b0b7f1c4d10c581a58fa4e7f0d490"], ["created_at", "2018-07-27 13:36:24.453531"], ["updated_at", "2018-07-27 13:36:24.453531"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to 10101010@facebook.com (0.9ms) +Date: Fri, 27 Jul 2018 16:36:24 +0300 +From: support@example.com +To: 10101010@facebook.com +Message-ID: <5b5b1fd86f2d0_7f958d66483856b@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +10101010@facebook.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Load (0.1ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 0], ["user_id", "10101010"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Create (0.2ms) INSERT INTO "api_user_auth_provider_tokens" ("auth_user_id", "provider", "user_id", "user_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_user_id", 326], ["provider", 0], ["user_id", "10101010"], ["user_data", "{\"id\":\"10101010\",\"name\":\"Test\",\"provider\":\"facebook\",\"email\":\"mail@mail.com\",\"img_url\":\"img\"}"], ["created_at", "2018-07-27 13:36:24.457271"], ["updated_at", "2018-07-27 13:36:24.457271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) ROLLBACK +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{723eec4a-27f7-4555-afa9-fd1008925c4b}"], ["created_at", "2018-07-27 13:37:16.461295"], ["updated_at", "2018-07-27 13:37:16.461295"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.5ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 119.2ms +Sent mail to user@mail.com (3.2ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200c9c2f6_17b57a6482992a@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "10101010@facebook.com"], ["encrypted_password", "ae8ccc909f9f7778cdfca56052a4249a579e5da65bd4671ef2d5e58746a9e8e9"], ["created_at", "2018-07-27 13:37:16.653338"], ["updated_at", "2018-07-27 13:37:16.653338"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.9ms +Sent mail to 10101010@facebook.com (1.3ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: 10101010@facebook.com +Message-ID: <5b5b200ca02d6_17b57a6483007d@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +10101010@facebook.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Load (0.1ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 0], ["user_id", "10101010"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Create (0.3ms) INSERT INTO "api_user_auth_provider_tokens" ("auth_user_id", "provider", "user_id", "user_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_user_id", 328], ["provider", 0], ["user_id", "10101010"], ["user_data", "{\"id\":\"10101010\",\"name\":\"Test\",\"provider\":\"facebook\",\"email\":\"mail@mail.com\",\"img_url\":\"img\"}"], ["created_at", "2018-07-27 13:37:16.673398"], ["updated_at", "2018-07-27 13:37:16.673398"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{9f73156c-a088-49d0-ad29-be3919200daf}"], ["created_at", "2018-07-27 13:37:16.680100"], ["updated_at", "2018-07-27 13:37:16.680100"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.3ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200ca6ad0_17b57a6483013e@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by TestController#index as HTML + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('9f73156c-a088-49d0-ad29-be3919200daf' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{bb2bf682-70bc-49e5-a92f-1f0b4d7f0ada}"], ["created_at", "2018-07-27 13:37:16.690558"], ["updated_at", "2018-07-27 13:37:16.690558"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.5ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200ca9294_17b57a648302e0@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by TestController#index as HTML +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by TestController#index as HTML +Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +Processing by TestController#index as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('dc236c4c-9567-47e8-b824-a35925b98666' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{43cbbc3c-dbe6-4037-a8b0-341e5d51834b}"], ["created_at", "2018-07-27 13:37:16.700848"], ["updated_at", "2018-07-27 13:37:16.700848"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.9ms +Sent mail to user@mail.com (1.3ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200cabb4e_17b57a6483031d@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "123456"], ["updated_at", "2018-07-27 13:37:16.704577"], ["id", 331]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123456", "email"=>"user1@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user1@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123457", "email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.4ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.4ms) +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123457", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{08a75839-2bdf-49c2-8f83-c3ec5cd20d5c}"], ["created_at", "2018-07-27 13:37:16.716535"], ["updated_at", "2018-07-27 13:37:16.716535"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.2ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200caf878_17b57a6483046b@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "123456"], ["updated_at", "2018-07-27 13:37:16.720221"], ["id", 332]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#password as HTML + Parameters: {"code"=>"123456", "email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "encrypted_password" = $1, "auth_tokens" = $2, "updated_at" = $3 WHERE "api_user_auth_auth_users"."id" = $4 [["encrypted_password", "12ade6a91f185f6f2901c1a542fea73a4c9e3598f6a4dfd18e2c3338eaf1d306"], ["auth_tokens", "{08a75839-2bdf-49c2-8f83-c3ec5cd20d5c,60da10c4-9018-44c3-9888-1a791abde8e1}"], ["updated_at", "2018-07-27 13:37:16.722666"], ["id", 332]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.5ms) + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 332], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{20933805-c315-4f6a-a8be-60048f78114b}"], ["created_at", "2018-07-27 13:37:16.734613"], ["updated_at", "2018-07-27 13:37:16.734613"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200cb3d4d_17b57a64830577@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#forgot_password as HTML + Parameters: {"email"=>"user1@mail.com"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user1@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 333], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{5982b91e-7a7b-4edb-bdbe-cbddeb62320a}"], ["created_at", "2018-07-27 13:37:16.740988"], ["updated_at", "2018-07-27 13:37:16.740988"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200cb55e2_17b57a64830645@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#forgot_password as HTML + Parameters: {"email"=>"user@mail.com"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "code" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["code", "291626"], ["updated_at", "2018-07-27 13:37:16.745024"], ["id", 334]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb (0.2ms) +ApiUserAuth::ForgotPasswordMailer#reset_code: processed outbound mail in 5.7ms +Sent mail to user@mail.com (0.8ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200cb805f_17b57a648307da@merkulov.mail> +Subject: Password Code Reset +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +user@mail.com +</br> +<strong>291626</strong> +Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.5ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 334], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{56ea12a6-8c3a-46f6-aaa4-e7b49be8a03e}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "facebook"], ["created_at", "2018-07-27 13:37:16.760475"], ["updated_at", "2018-07-27 13:37:16.760475"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:16 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200cba315_17b57a648308e6@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{56ea12a6-8c3a-46f6-aaa4-e7b49be8a03e,6ff55a91-5768-4999-9e96-035d6dc17ed8}"], ["updated_at", "2018-07-27 13:37:16.767362"], ["id", 335]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 1.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook", "token"=>"token"} +Completed 422 Unprocessable Entity in 299ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook2", "token"=>"token"} +Completed 422 Unprocessable Entity in 290ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"facebook"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} +Completed 422 Unprocessable Entity in 170ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google2", "token"=>"token"} +Completed 422 Unprocessable Entity in 163ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.4ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.8ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{11c2fc0d-da3c-47bb-87e1-ce5821984aa5}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "google"], ["created_at", "2018-07-27 13:37:17.733699"], ["updated_at", "2018-07-27 13:37:17.733699"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.3ms +Sent mail to user@mail.com (3.6ms) +Date: Fri, 27 Jul 2018 16:37:17 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200db4f51_17b57a6483094d@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 16ms (Views: 0.4ms | ActiveRecord: 2.3ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.6ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.6ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.8ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{11c2fc0d-da3c-47bb-87e1-ce5821984aa5,32badbdc-9fa1-4b4b-9a76-babee26b8117}"], ["updated_at", "2018-07-27 13:37:17.756087"], ["id", 336]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 4.8ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.6ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.3ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.4ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "user_provider_data", "provider", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "token"], ["auth_tokens", "{4a71475e-6b1c-4e13-a19f-fde2e974cfae}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "instagram"], ["created_at", "2018-07-27 13:37:17.772375"], ["updated_at", "2018-07-27 13:37:17.772375"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 1.0ms +Sent mail to user@mail.com (1.4ms) +Date: Fri, 27 Jul 2018 16:37:17 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200dbd6c3_17b57a64831034@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 1.3ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" IS NULL AND "api_user_auth_provider_tokens"."user_id" IS NULL LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.3ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{4a71475e-6b1c-4e13-a19f-fde2e974cfae,2f91e49a-6bf7-4b8f-9914-065700eb27db}"], ["updated_at", "2018-07-27 13:37:17.781855"], ["id", 337]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 2.4ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram", "token"=>"token"} +Completed 422 Unprocessable Entity in 351ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram2", "token"=>"token"} +Completed 422 Unprocessable Entity in 400ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"instagram"} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.8ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{b6a6712f-be3f-4e90-a4af-2044a978477e}"], ["created_at", "2018-07-27 13:37:18.554822"], ["updated_at", "2018-07-27 13:37:18.554822"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.4ms +Sent mail to user@mail.com (3.4ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e8932e_17b57a6483118@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.6ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.5ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.8ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{b6a6712f-be3f-4e90-a4af-2044a978477e,0e6cfe34-1f68-45f5-80d1-962dfc8d990e}"], ["updated_at", "2018-07-27 13:37:18.573482"], ["id", 338]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 2.0ms) + ApiUserAuth::AuthUser Load (0.6ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.5ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{26a78eb0-0eed-4cdb-98c3-bec862cc6743}"], ["created_at", "2018-07-27 13:37:18.586069"], ["updated_at", "2018-07-27 13:37:18.586069"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 1.3ms +Sent mail to user@mail.com (1.8ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e9027a_17b57a648312cf@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user2@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user2@mail.com"], ["LIMIT", 1]] +Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) +Processing by ApiUserAuth::AuthController#login as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (1.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 401 Unauthorized in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{e078e1b3-af15-4a15-b471-b145e8a96785}"], ["created_at", "2018-07-27 13:37:18.603978"], ["updated_at", "2018-07-27 13:37:18.603978"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms +Sent mail to user@mail.com (1.1ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e9402f_17b57a6483134e@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."auth_user_id" = $1 [["auth_user_id", 340]] +Processing by ApiUserAuth::AuthController#add_provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('e078e1b3-af15-4a15-b471-b145e8a96785' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 1], ["user_id", "102030"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::ProviderToken Create (0.2ms) INSERT INTO "api_user_auth_provider_tokens" ("auth_user_id", "provider", "user_id", "user_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_user_id", 340], ["provider", 1], ["user_id", "102030"], ["user_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\",\"provider\":\"google\",\"id\":\"102030\"}"], ["created_at", "2018-07-27 13:37:18.611795"], ["updated_at", "2018-07-27 13:37:18.611795"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."auth_user_id" = $1 [["auth_user_id", 340]] +Processing by ApiUserAuth::AuthController#provider as HTML + Parameters: {"provider"=>"google", "token"=>"token"} + ApiUserAuth::ProviderToken Load (0.2ms) SELECT "api_user_auth_provider_tokens".* FROM "api_user_auth_provider_tokens" WHERE "api_user_auth_provider_tokens"."provider" = $1 AND "api_user_auth_provider_tokens"."user_id" = $2 LIMIT $3 [["provider", 1], ["user_id", "102030"], ["LIMIT", 1]] + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 340], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{e078e1b3-af15-4a15-b471-b145e8a96785,807f50e4-2ca7-46bd-99fe-78ed4d5712f7}"], ["updated_at", "2018-07-27 13:37:18.616032"], ["id", 340]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 1.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{8ed07f5e-0d36-4582-afd7-a350b315633f}"], ["created_at", "2018-07-27 13:37:18.620436"], ["updated_at", "2018-07-27 13:37:18.620436"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e97f33_17b57a6483148@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" ORDER BY "api_user_auth_auth_users"."id" DESC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"", "password"=>"[FILTERED]"} +Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) +  (0.1ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{7800fd9a-0ee9-4561-aecb-ad8f5e67e960}"], ["created_at", "2018-07-27 13:37:18.632369"], ["updated_at", "2018-07-27 13:37:18.632369"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e9adf3_17b57a64831577@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +Processing by ApiUserAuth::AuthController#create as HTML + Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"} + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.3ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{9f218862-e652-4a6e-ad20-eede78442a74}"], ["created_at", "2018-07-27 13:37:18.640166"], ["updated_at", "2018-07-27 13:37:18.640166"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.4ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e9d39a_17b57a64831695@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#logout as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('acc90361-1aed-4148-a6ad-a44b7bca64eb' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 343], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + ApiUserAuth::AuthUser Load (0.1ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."email" = $1 LIMIT $2 [["email", "user@mail.com"], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Create (0.2ms) INSERT INTO "api_user_auth_auth_users" ("email", "encrypted_password", "auth_tokens", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["email", "user@mail.com"], ["encrypted_password", "6791129422e976a37f2df5a4f7de472b3490f7858421be449928feb3c8b0e8d7"], ["auth_tokens", "{812d466c-ad74-4f08-91ed-24e38eb78226}"], ["created_at", "2018-07-27 13:37:18.648917"], ["updated_at", "2018-07-27 13:37:18.648917"]] + Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb + Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms) +ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms +Sent mail to user@mail.com (0.9ms) +Date: Fri, 27 Jul 2018 16:37:18 +0300 +From: support@example.com +To: user@mail.com +Message-ID: <5b5b200e9ee4b_17b57a6483171b@merkulov.mail> +Subject: Welcome ! +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: 7bit + +<h1>Welcome</h1> +user@mail.com +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by ApiUserAuth::AuthController#logout as HTML + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('812d466c-ad74-4f08-91ed-24e38eb78226' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + ApiUserAuth::AuthUser Update (0.2ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{}"], ["updated_at", "2018-07-27 13:37:18.653180"], ["id", 344]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.6ms) + ApiUserAuth::AuthUser Load (0.2ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE "api_user_auth_auth_users"."id" = $1 LIMIT $2 [["id", 344], ["LIMIT", 1]] +  (0.1ms) ROLLBACK