api_user_auth 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e9ccdf1f2cf33bd87ef4749039eba166b88f5ee6672a5c7d9bcce66fe7f71be
4
- data.tar.gz: 4aa20626e6910277f8e91d8f81bfe370e2676d90e7f8fe1cbd2548faa6cf755e
3
+ metadata.gz: 14ccd567f2514189726a4dd9d4423a00402ec75083d1f1a3c124ba125dfca47b
4
+ data.tar.gz: 8e9cc6376873cd8cd9a5cb52c53561938ce68e65af33b4bd50693c4b3affe3bf
5
5
  SHA512:
6
- metadata.gz: 2413f31cedcce9f135953583590c298f5665e06c04a94b1ba6d202618d65d8d6b95ccb3d141a8312778efb36659e8394a3d00cc5e323b860bc089c1078d4a261
7
- data.tar.gz: 8207fe9d20aaa88a85b353a6b6f9e6d236ebce8e49619013729325f113e64b84f9b7696dc7bb0f197a630ab92dc0bda55077b7b761ad6a04743a80e51d36371b
6
+ metadata.gz: a00f3a899a3ee465711d869b2aa99f3b84b9cc1b8be8d890142f596b809972a50e77423e1d2c72a43deee141160741dc0066d4f3199e5cd5a7ee84cb52a0e8b7
7
+ data.tar.gz: 92b618e8ac88eb50e651031f2d7dcffbcee7f5afde785e1a1a7998d64469dcb829cf89e55b1c15738ac2c099f2ba2d418cca8f811d44e74e19444da0f4677ec7
@@ -81,6 +81,7 @@ module ApiUserAuth
81
81
  raise Exceptions::WrongParams, 'Email is invalid!'
82
82
  end
83
83
  auth_user.send_reset_password
84
+ auth_user
84
85
  end
85
86
 
86
87
  def self.create_by_provider(params)
@@ -1,3 +1,3 @@
1
1
  module ApiUserAuth
2
- VERSION = '0.0.12'.freeze
2
+ VERSION = '0.0.14'.freeze
3
3
  end
@@ -42939,3 +42939,588 @@ Processing by ApiUserAuth::AuthController#password as HTML
42939
42939
  Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.5ms)
42940
42940
  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", 302], ["LIMIT", 1]]
42941
42941
   (0.2ms) ROLLBACK
42942
+  (37.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
42943
+  (0.4ms) BEGIN
42944
+  (51.5ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42945
+ Processing by ApiUserAuth::AuthController#provider as HTML
42946
+ Parameters: {"provider"=>"instagram", "token"=>"token"}
42947
+ Completed 422 Unprocessable Entity in 372ms (Views: 0.5ms | ActiveRecord: 0.0ms)
42948
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42949
+ Processing by ApiUserAuth::AuthController#provider as HTML
42950
+ Parameters: {"provider"=>"instagram2", "token"=>"token"}
42951
+ Completed 422 Unprocessable Entity in 631ms (Views: 0.4ms | ActiveRecord: 0.0ms)
42952
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42953
+ Processing by ApiUserAuth::AuthController#provider as HTML
42954
+ Parameters: {"provider"=>"instagram"}
42955
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
42956
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42957
+  (0.5ms) ROLLBACK
42958
+  (0.3ms) BEGIN
42959
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42960
+ Processing by ApiUserAuth::AuthController#provider as HTML
42961
+ Parameters: {"provider"=>"instagram", "token"=>"token"}
42962
+ ApiUserAuth::AuthUser Load (0.7ms) 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]]
42963
+  (0.3ms) SAVEPOINT active_record_1
42964
+ ApiUserAuth::AuthUser Create (19.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", "{2a72d41d-360d-4038-9f16-0d3ae3d50a8e}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "instagram"], ["created_at", "2018-07-24 07:28:15.482586"], ["updated_at", "2018-07-24 07:28:15.482586"]]
42965
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
42966
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (9.0ms)
42967
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 245.1ms
42968
+ Sent mail to user@mail.com (3.6ms)
42969
+ Date: Tue, 24 Jul 2018 10:28:15 +0300
42970
+ From: support@example.com
42971
+ To: user@mail.com
42972
+ Message-ID: <5b56d50fef59f_4bab4d664c71799@merkulov.mail>
42973
+ Subject: Welcome !
42974
+ Mime-Version: 1.0
42975
+ Content-Type: text/html;
42976
+ charset=UTF-8
42977
+ Content-Transfer-Encoding: 7bit
42978
+
42979
+ <h1>Welcome</h1>
42980
+ user@mail.com
42981
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42982
+ Completed 200 OK in 530ms (Views: 0.1ms | ActiveRecord: 26.4ms)
42983
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42984
+ 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]]
42985
+ Processing by ApiUserAuth::AuthController#provider as HTML
42986
+ Parameters: {"provider"=>"instagram", "token"=>"token"}
42987
+ 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]]
42988
+  (0.2ms) SAVEPOINT active_record_1
42989
+ 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", "{2a72d41d-360d-4038-9f16-0d3ae3d50a8e,d1d6ba77-85ad-4f6b-a9a8-7902538f0f85}"], ["updated_at", "2018-07-24 07:28:16.000918"], ["id", 303]]
42990
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42991
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 27.7ms)
42992
+  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42993
+ 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]]
42994
+  (0.2ms) ROLLBACK
42995
+  (0.1ms) BEGIN
42996
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
42997
+ Processing by ApiUserAuth::AuthController#provider as HTML
42998
+ Parameters: {"provider"=>"facebook", "token"=>"token"}
42999
+ Completed 422 Unprocessable Entity in 301ms (Views: 1.0ms | ActiveRecord: 0.0ms)
43000
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43001
+ Processing by ApiUserAuth::AuthController#provider as HTML
43002
+ Parameters: {"provider"=>"facebook2", "token"=>"token"}
43003
+ Completed 422 Unprocessable Entity in 280ms (Views: 0.3ms | ActiveRecord: 0.0ms)
43004
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43005
+ Processing by ApiUserAuth::AuthController#provider as HTML
43006
+ Parameters: {"provider"=>"facebook"}
43007
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
43008
+  (1.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43009
+  (0.4ms) ROLLBACK
43010
+  (0.3ms) BEGIN
43011
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43012
+ Processing by ApiUserAuth::AuthController#provider as HTML
43013
+ Parameters: {"provider"=>"facebook", "token"=>"token"}
43014
+ 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]]
43015
+  (0.4ms) SAVEPOINT active_record_1
43016
+ 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", "{a05180cc-ffef-434c-a8dd-4714224784e3}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "facebook"], ["created_at", "2018-07-24 07:28:16.614741"], ["updated_at", "2018-07-24 07:28:16.614741"]]
43017
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43018
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms)
43019
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.8ms
43020
+ Sent mail to user@mail.com (4.9ms)
43021
+ Date: Tue, 24 Jul 2018 10:28:16 +0300
43022
+ From: support@example.com
43023
+ To: user@mail.com
43024
+ Message-ID: <5b56d510984b4_4bab4d664c71821@merkulov.mail>
43025
+ Subject: Welcome !
43026
+ Mime-Version: 1.0
43027
+ Content-Type: text/html;
43028
+ charset=UTF-8
43029
+ Content-Transfer-Encoding: 7bit
43030
+
43031
+ <h1>Welcome</h1>
43032
+ user@mail.com
43033
+  (0.4ms) RELEASE SAVEPOINT active_record_1
43034
+ Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 2.1ms)
43035
+  (0.5ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43036
+ 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]]
43037
+ Processing by ApiUserAuth::AuthController#provider as HTML
43038
+ Parameters: {"provider"=>"facebook", "token"=>"token"}
43039
+ 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]]
43040
+  (0.2ms) SAVEPOINT active_record_1
43041
+ 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", "{a05180cc-ffef-434c-a8dd-4714224784e3,74159f34-10ff-4bcc-ab5c-de94bd5026f5}"], ["updated_at", "2018-07-24 07:28:16.635733"], ["id", 304]]
43042
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43043
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.5ms)
43044
+  (0.4ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43045
+ 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]]
43046
+  (0.3ms) ROLLBACK
43047
+  (0.2ms) BEGIN
43048
+  (0.4ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43049
+ Processing by ApiUserAuth::AuthController#provider as HTML
43050
+ Parameters: {"provider"=>"google", "token"=>"token"}
43051
+ 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]]
43052
+  (0.2ms) SAVEPOINT active_record_1
43053
+ ApiUserAuth::AuthUser Create (0.5ms) 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", "{5eb33776-46a2-4afd-a8b7-25c8806b1f97}"], ["user_provider_data", "{\"email\":\"user@mail.com\",\"name\":\"User Name\"}"], ["provider", "google"], ["created_at", "2018-07-24 07:28:16.650979"], ["updated_at", "2018-07-24 07:28:16.650979"]]
43054
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43055
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms)
43056
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.0ms
43057
+ Sent mail to user@mail.com (3.1ms)
43058
+ Date: Tue, 24 Jul 2018 10:28:16 +0300
43059
+ From: support@example.com
43060
+ To: user@mail.com
43061
+ Message-ID: <5b56d510a082b_4bab4d664c71997@merkulov.mail>
43062
+ Subject: Welcome !
43063
+ Mime-Version: 1.0
43064
+ Content-Type: text/html;
43065
+ charset=UTF-8
43066
+ Content-Transfer-Encoding: 7bit
43067
+
43068
+ <h1>Welcome</h1>
43069
+ user@mail.com
43070
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43071
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 1.5ms)
43072
+  (0.4ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43073
+ 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]]
43074
+ Processing by ApiUserAuth::AuthController#provider as HTML
43075
+ Parameters: {"provider"=>"google", "token"=>"token"}
43076
+ 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]]
43077
+  (0.2ms) SAVEPOINT active_record_1
43078
+ ApiUserAuth::AuthUser Update (0.4ms) UPDATE "api_user_auth_auth_users" SET "auth_tokens" = $1, "updated_at" = $2 WHERE "api_user_auth_auth_users"."id" = $3 [["auth_tokens", "{5eb33776-46a2-4afd-a8b7-25c8806b1f97,eca29667-18ca-4ba2-a360-1d314dfcd2ec}"], ["updated_at", "2018-07-24 07:28:16.667696"], ["id", 305]]
43079
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43080
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.8ms)
43081
+  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43082
+ 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]]
43083
+  (0.2ms) ROLLBACK
43084
+  (0.1ms) BEGIN
43085
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43086
+ Processing by ApiUserAuth::AuthController#provider as HTML
43087
+ Parameters: {"provider"=>"google", "token"=>"token"}
43088
+ Completed 422 Unprocessable Entity in 201ms (Views: 0.4ms | ActiveRecord: 0.0ms)
43089
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43090
+ Processing by ApiUserAuth::AuthController#provider as HTML
43091
+ Parameters: {"provider"=>"google2", "token"=>"token"}
43092
+ Completed 422 Unprocessable Entity in 163ms (Views: 0.3ms | ActiveRecord: 0.0ms)
43093
+  (0.7ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43094
+ Processing by ApiUserAuth::AuthController#provider as HTML
43095
+ Parameters: {"provider"=>"google"}
43096
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
43097
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43098
+  (0.4ms) ROLLBACK
43099
+  (0.3ms) BEGIN
43100
+  (0.6ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43101
+ Processing by ApiUserAuth::AuthController#create as HTML
43102
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43103
+ 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]]
43104
+  (0.4ms) SAVEPOINT active_record_1
43105
+ 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", "{efb5ec48-45dd-44aa-a63a-0e19fa299af3}"], ["created_at", "2018-07-24 07:28:17.063781"], ["updated_at", "2018-07-24 07:28:17.063781"]]
43106
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43107
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.1ms)
43108
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 2.8ms
43109
+ Sent mail to user@mail.com (1.3ms)
43110
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43111
+ From: support@example.com
43112
+ To: user@mail.com
43113
+ Message-ID: <5b56d51111570_4bab4d664c72083@merkulov.mail>
43114
+ Subject: Welcome !
43115
+ Mime-Version: 1.0
43116
+ Content-Type: text/html;
43117
+ charset=UTF-8
43118
+ Content-Transfer-Encoding: 7bit
43119
+
43120
+ <h1>Welcome</h1>
43121
+ user@mail.com
43122
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43123
+ Completed 201 Created in 12ms (Views: 0.1ms | ActiveRecord: 1.7ms)
43124
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43125
+ 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]]
43126
+  (0.1ms) ROLLBACK
43127
+  (0.1ms) BEGIN
43128
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43129
+ Processing by ApiUserAuth::AuthController#create as HTML
43130
+ Parameters: {"email"=>"user@mail.com"}
43131
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43132
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43133
+ Processing by ApiUserAuth::AuthController#create as HTML
43134
+ Parameters: {"password"=>"[FILTERED]"}
43135
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43136
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43137
+ Processing by ApiUserAuth::AuthController#create as HTML
43138
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43139
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43140
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43141
+ Processing by ApiUserAuth::AuthController#create as HTML
43142
+ Parameters: {"email"=>"", "password"=>"[FILTERED]"}
43143
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
43144
+  (0.3ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43145
+ Processing by ApiUserAuth::AuthController#create as HTML
43146
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43147
+ 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]]
43148
+  (0.1ms) SAVEPOINT active_record_1
43149
+ 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", "{3a8df46f-1d73-4366-b4c2-a42dc89e48a6}"], ["created_at", "2018-07-24 07:28:17.082524"], ["updated_at", "2018-07-24 07:28:17.082524"]]
43150
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43151
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43152
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms
43153
+ Sent mail to user@mail.com (1.0ms)
43154
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43155
+ From: support@example.com
43156
+ To: user@mail.com
43157
+ Message-ID: <5b56d51114b65_4bab4d664c7215e@merkulov.mail>
43158
+ Subject: Welcome !
43159
+ Mime-Version: 1.0
43160
+ Content-Type: text/html;
43161
+ charset=UTF-8
43162
+ Content-Transfer-Encoding: 7bit
43163
+
43164
+ <h1>Welcome</h1>
43165
+ user@mail.com
43166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43167
+ Completed 201 Created in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
43168
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43169
+ Processing by ApiUserAuth::AuthController#create as HTML
43170
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43171
+ 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]]
43172
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.8ms)
43173
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43174
+  (0.1ms) ROLLBACK
43175
+  (0.1ms) BEGIN
43176
+ 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]]
43177
+  (0.1ms) SAVEPOINT active_record_1
43178
+ 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", "{57ca7b37-62e7-402f-a9fe-9ee845872800}"], ["created_at", "2018-07-24 07:28:17.090675"], ["updated_at", "2018-07-24 07:28:17.090675"]]
43179
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43180
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43181
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms
43182
+ Sent mail to user@mail.com (1.8ms)
43183
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43184
+ From: support@example.com
43185
+ To: user@mail.com
43186
+ Message-ID: <5b56d51116a84_4bab4d664c722b4@merkulov.mail>
43187
+ Subject: Welcome !
43188
+ Mime-Version: 1.0
43189
+ Content-Type: text/html;
43190
+ charset=UTF-8
43191
+ Content-Transfer-Encoding: 7bit
43192
+
43193
+ <h1>Welcome</h1>
43194
+ user@mail.com
43195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43196
+ Processing by ApiUserAuth::AuthController#logout as HTML
43197
+ ApiUserAuth::AuthUser Load (0.4ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('57ca7b37-62e7-402f-a9fe-9ee845872800' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]]
43198
+  (0.1ms) SAVEPOINT active_record_1
43199
+ 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-24 07:28:17.096584"], ["id", 308]]
43200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43201
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.9ms)
43202
+ 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", 308], ["LIMIT", 1]]
43203
+  (0.1ms) ROLLBACK
43204
+  (0.1ms) BEGIN
43205
+ 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]]
43206
+  (0.1ms) SAVEPOINT active_record_1
43207
+ 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", "{1d0595fd-f18f-4d7d-8fde-6e73e15c6193}"], ["created_at", "2018-07-24 07:28:17.100799"], ["updated_at", "2018-07-24 07:28:17.100799"]]
43208
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43209
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43210
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms
43211
+ Sent mail to user@mail.com (0.9ms)
43212
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43213
+ From: support@example.com
43214
+ To: user@mail.com
43215
+ Message-ID: <5b56d5111aa02_4bab4d664c72331@merkulov.mail>
43216
+ Subject: Welcome !
43217
+ Mime-Version: 1.0
43218
+ Content-Type: text/html;
43219
+ charset=UTF-8
43220
+ Content-Transfer-Encoding: 7bit
43221
+
43222
+ <h1>Welcome</h1>
43223
+ user@mail.com
43224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43225
+ Processing by ApiUserAuth::AuthController#logout as HTML
43226
+ ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('e092e9dc-570b-4a3a-9365-e3cd10850f36' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]]
43227
+ Completed 400 Bad Request in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43228
+ 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", 309], ["LIMIT", 1]]
43229
+  (0.2ms) ROLLBACK
43230
+  (0.1ms) BEGIN
43231
+ 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]]
43232
+  (0.0ms) SAVEPOINT active_record_1
43233
+ 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", "{e93a6335-5e98-4959-879a-31ee6af2948c}"], ["created_at", "2018-07-24 07:28:17.114462"], ["updated_at", "2018-07-24 07:28:17.114462"]]
43234
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43235
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43236
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms
43237
+ Sent mail to user@mail.com (0.9ms)
43238
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43239
+ From: support@example.com
43240
+ To: user@mail.com
43241
+ Message-ID: <5b56d5111c6ba_4bab4d664c72451@merkulov.mail>
43242
+ Subject: Welcome !
43243
+ Mime-Version: 1.0
43244
+ Content-Type: text/html;
43245
+ charset=UTF-8
43246
+ Content-Transfer-Encoding: 7bit
43247
+
43248
+ <h1>Welcome</h1>
43249
+ user@mail.com
43250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43251
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43252
+ 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]]
43253
+ Processing by ApiUserAuth::AuthController#login as HTML
43254
+ Parameters: {"email"=>"user@mail.com"}
43255
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43256
+ Processing by ApiUserAuth::AuthController#login as HTML
43257
+ Parameters: {"password"=>"[FILTERED]"}
43258
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43259
+ Processing by ApiUserAuth::AuthController#login as HTML
43260
+ Parameters: {"email"=>"user2@mail.com", "password"=>"[FILTERED]"}
43261
+ 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]]
43262
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
43263
+ Processing by ApiUserAuth::AuthController#login as HTML
43264
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43265
+ 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]]
43266
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.4ms)
43267
+  (0.1ms) ROLLBACK
43268
+  (0.1ms) BEGIN
43269
+ 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]]
43270
+  (0.1ms) SAVEPOINT active_record_1
43271
+ 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", "{2e018472-be09-459f-a61d-4d6c0bcf9689}"], ["created_at", "2018-07-24 07:28:17.123990"], ["updated_at", "2018-07-24 07:28:17.123990"]]
43272
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43273
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43274
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms
43275
+ Sent mail to user@mail.com (0.9ms)
43276
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43277
+ From: support@example.com
43278
+ To: user@mail.com
43279
+ Message-ID: <5b56d5111ebe4_4bab4d664c72587@merkulov.mail>
43280
+ Subject: Welcome !
43281
+ Mime-Version: 1.0
43282
+ Content-Type: text/html;
43283
+ charset=UTF-8
43284
+ Content-Transfer-Encoding: 7bit
43285
+
43286
+ <h1>Welcome</h1>
43287
+ user@mail.com
43288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43289
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43290
+ 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]]
43291
+ Processing by ApiUserAuth::AuthController#login as HTML
43292
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43293
+ 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]]
43294
+  (0.1ms) SAVEPOINT active_record_1
43295
+ 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", "{2e018472-be09-459f-a61d-4d6c0bcf9689,83381264-d656-411e-9aa1-644c64020b83}"], ["updated_at", "2018-07-24 07:28:17.128898"], ["id", 311]]
43296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43297
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.6ms)
43298
+ 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]]
43299
+  (0.1ms) ROLLBACK
43300
+  (0.1ms) BEGIN
43301
+ 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]]
43302
+  (0.1ms) SAVEPOINT active_record_1
43303
+ 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", "{ca79e6fd-6cbe-4015-8c50-c921db278728}"], ["created_at", "2018-07-24 07:28:17.132510"], ["updated_at", "2018-07-24 07:28:17.132510"]]
43304
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43305
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43306
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms
43307
+ Sent mail to user@mail.com (0.9ms)
43308
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43309
+ From: support@example.com
43310
+ To: user@mail.com
43311
+ Message-ID: <5b56d51120cf9_4bab4d664c7266c@merkulov.mail>
43312
+ Subject: Welcome !
43313
+ Mime-Version: 1.0
43314
+ Content-Type: text/html;
43315
+ charset=UTF-8
43316
+ Content-Transfer-Encoding: 7bit
43317
+
43318
+ <h1>Welcome</h1>
43319
+ user@mail.com
43320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43321
+  (0.1ms) SAVEPOINT active_record_1
43322
+ 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-24 07:28:17.135376"], ["id", 312]]
43323
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43324
+ Processing by ApiUserAuth::AuthController#password as HTML
43325
+ Parameters: {"code"=>"123456", "email"=>"user@mail.com", "password"=>"[FILTERED]"}
43326
+ 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]]
43327
+  (0.1ms) SAVEPOINT active_record_1
43328
+ 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", "{ca79e6fd-6cbe-4015-8c50-c921db278728,4980a7b7-ad08-47fa-907d-3bf621304075}"], ["updated_at", "2018-07-24 07:28:17.137545"], ["id", 312]]
43329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43330
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.5ms)
43331
+ 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", 312], ["LIMIT", 1]]
43332
+  (0.1ms) ROLLBACK
43333
+  (0.1ms) BEGIN
43334
+ 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]]
43335
+  (0.1ms) SAVEPOINT active_record_1
43336
+ 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", "{02ac3750-91ec-4a78-8ea0-4b7430da2c3d}"], ["created_at", "2018-07-24 07:28:17.140956"], ["updated_at", "2018-07-24 07:28:17.140956"]]
43337
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43338
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43339
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms
43340
+ Sent mail to user@mail.com (1.0ms)
43341
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43342
+ From: support@example.com
43343
+ To: user@mail.com
43344
+ Message-ID: <5b56d51122ded_4bab4d664c72796@merkulov.mail>
43345
+ Subject: Welcome !
43346
+ Mime-Version: 1.0
43347
+ Content-Type: text/html;
43348
+ charset=UTF-8
43349
+ Content-Transfer-Encoding: 7bit
43350
+
43351
+ <h1>Welcome</h1>
43352
+ user@mail.com
43353
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43354
+  (0.1ms) SAVEPOINT active_record_1
43355
+ 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-24 07:28:17.144115"], ["id", 313]]
43356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43357
+ Processing by ApiUserAuth::AuthController#password as HTML
43358
+ Parameters: {"code"=>"123456", "email"=>"user1@mail.com", "password"=>"[FILTERED]"}
43359
+ 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]]
43360
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
43361
+ Processing by ApiUserAuth::AuthController#password as HTML
43362
+ Parameters: {"code"=>"123457", "email"=>"user@mail.com", "password"=>"[FILTERED]"}
43363
+ 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]]
43364
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43365
+ Processing by ApiUserAuth::AuthController#password as HTML
43366
+ Parameters: {"email"=>"user@mail.com", "password"=>"[FILTERED]"}
43367
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43368
+ Processing by ApiUserAuth::AuthController#password as HTML
43369
+ Parameters: {"code"=>"123457", "password"=>"[FILTERED]"}
43370
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43371
+  (0.2ms) ROLLBACK
43372
+  (0.1ms) BEGIN
43373
+ 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]]
43374
+  (0.1ms) SAVEPOINT active_record_1
43375
+ 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", "{d3f30e63-299a-4f83-8c06-769b4ff0cf58}"], ["created_at", "2018-07-24 07:28:17.151208"], ["updated_at", "2018-07-24 07:28:17.151208"]]
43376
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43377
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43378
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.7ms
43379
+ Sent mail to user@mail.com (0.9ms)
43380
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43381
+ From: support@example.com
43382
+ To: user@mail.com
43383
+ Message-ID: <5b56d5112565f_4bab4d664c72871@merkulov.mail>
43384
+ Subject: Welcome !
43385
+ Mime-Version: 1.0
43386
+ Content-Type: text/html;
43387
+ charset=UTF-8
43388
+ Content-Transfer-Encoding: 7bit
43389
+
43390
+ <h1>Welcome</h1>
43391
+ user@mail.com
43392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43393
+ Processing by ApiUserAuth::AuthController#forgot_password as HTML
43394
+ Parameters: {"email"=>"user1@mail.com"}
43395
+ 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]]
43396
+ Completed 422 Unprocessable Entity in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
43397
+ 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", 314], ["LIMIT", 1]]
43398
+  (0.1ms) ROLLBACK
43399
+  (0.1ms) BEGIN
43400
+ 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]]
43401
+  (0.1ms) SAVEPOINT active_record_1
43402
+ 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", "{5fa14118-5562-4e72-930c-5534739ce50d}"], ["created_at", "2018-07-24 07:28:17.157516"], ["updated_at", "2018-07-24 07:28:17.157516"]]
43403
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43404
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43405
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.6ms
43406
+ Sent mail to user@mail.com (0.8ms)
43407
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43408
+ From: support@example.com
43409
+ To: user@mail.com
43410
+ Message-ID: <5b56d51126e93_4bab4d664c72992@merkulov.mail>
43411
+ Subject: Welcome !
43412
+ Mime-Version: 1.0
43413
+ Content-Type: text/html;
43414
+ charset=UTF-8
43415
+ Content-Transfer-Encoding: 7bit
43416
+
43417
+ <h1>Welcome</h1>
43418
+ user@mail.com
43419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43420
+ Processing by ApiUserAuth::AuthController#forgot_password as HTML
43421
+ Parameters: {"email"=>"user@mail.com"}
43422
+ 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]]
43423
+  (0.1ms) SAVEPOINT active_record_1
43424
+ 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", "804142"], ["updated_at", "2018-07-24 07:28:17.161447"], ["id", 315]]
43425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43426
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb
43427
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/forgot_password_mailer/reset_code.html.erb (0.3ms)
43428
+ ApiUserAuth::ForgotPasswordMailer#reset_code: processed outbound mail in 15.4ms
43429
+ Sent mail to user@mail.com (1.2ms)
43430
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43431
+ From: support@example.com
43432
+ To: user@mail.com
43433
+ Message-ID: <5b56d51131c7a_4bab4d664c73048@merkulov.mail>
43434
+ Subject: Password Code Reset
43435
+ Mime-Version: 1.0
43436
+ Content-Type: text/html;
43437
+ charset=UTF-8
43438
+ Content-Transfer-Encoding: 7bit
43439
+
43440
+ user@mail.com
43441
+ </br>
43442
+ <strong>804142</strong>
43443
+ Completed 200 OK in 44ms (Views: 0.1ms | ActiveRecord: 0.5ms)
43444
+ ApiUserAuth::AuthUser Load (0.3ms) 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]]
43445
+  (0.2ms) ROLLBACK
43446
+  (0.2ms) BEGIN
43447
+ 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]]
43448
+  (0.1ms) SAVEPOINT active_record_1
43449
+ 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", "{683f99e0-9664-4bc6-9abb-f73ed2de04dc}"], ["created_at", "2018-07-24 07:28:17.209060"], ["updated_at", "2018-07-24 07:28:17.209060"]]
43450
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43451
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43452
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms
43453
+ Sent mail to user@mail.com (1.2ms)
43454
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43455
+ From: support@example.com
43456
+ To: user@mail.com
43457
+ Message-ID: <5b56d51133ab6_4bab4d664c731e4@merkulov.mail>
43458
+ Subject: Welcome !
43459
+ Mime-Version: 1.0
43460
+ Content-Type: text/html;
43461
+ charset=UTF-8
43462
+ Content-Transfer-Encoding: 7bit
43463
+
43464
+ <h1>Welcome</h1>
43465
+ user@mail.com
43466
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43467
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43468
+ Processing by TestController#index as HTML
43469
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43470
+ Processing by TestController#index as HTML
43471
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
43472
+ Processing by TestController#index as HTML
43473
+ ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('684a9fe5-9c83-4fdb-b62a-401d7eac2639' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]]
43474
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43475
+  (0.2ms) ROLLBACK
43476
+  (0.1ms) BEGIN
43477
+ 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]]
43478
+  (0.1ms) SAVEPOINT active_record_1
43479
+ 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", "{2967b453-5f9d-4b83-a439-2354bcd2cf92}"], ["created_at", "2018-07-24 07:28:17.219478"], ["updated_at", "2018-07-24 07:28:17.219478"]]
43480
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43481
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43482
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms
43483
+ Sent mail to user@mail.com (1.1ms)
43484
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43485
+ From: support@example.com
43486
+ To: user@mail.com
43487
+ Message-ID: <5b56d511362f2_4bab4d664c73230@merkulov.mail>
43488
+ Subject: Welcome !
43489
+ Mime-Version: 1.0
43490
+ Content-Type: text/html;
43491
+ charset=UTF-8
43492
+ Content-Transfer-Encoding: 7bit
43493
+
43494
+ <h1>Welcome</h1>
43495
+ user@mail.com
43496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43497
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43498
+ 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]]
43499
+ Processing by TestController#index as HTML
43500
+ ApiUserAuth::AuthUser Load (0.3ms) SELECT "api_user_auth_auth_users".* FROM "api_user_auth_auth_users" WHERE ('2967b453-5f9d-4b83-a439-2354bcd2cf92' = ANY("api_user_auth_auth_users"."auth_tokens")) ORDER BY "api_user_auth_auth_users"."id" ASC LIMIT $1 [["LIMIT", 1]]
43501
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.3ms)
43502
+  (0.2ms) ROLLBACK
43503
+  (0.1ms) BEGIN
43504
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43505
+ 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]]
43506
+  (0.1ms) SAVEPOINT active_record_1
43507
+ 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", "{c78aaf22-867e-4d33-9b07-ce9e07c8c191}"], ["created_at", "2018-07-24 07:28:17.228613"], ["updated_at", "2018-07-24 07:28:17.228613"]]
43508
+ Rendering /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb
43509
+ Rendered /home/alex/bit_forge/api_user_auth/app/views/api_user_auth/welcome_mailer/welcome.html.erb (0.0ms)
43510
+ ApiUserAuth::WelcomeMailer#welcome: processed outbound mail in 0.8ms
43511
+ Sent mail to user@mail.com (1.1ms)
43512
+ Date: Tue, 24 Jul 2018 10:28:17 +0300
43513
+ From: support@example.com
43514
+ To: user@mail.com
43515
+ Message-ID: <5b56d51138694_4bab4d664c7330@merkulov.mail>
43516
+ Subject: Welcome !
43517
+ Mime-Version: 1.0
43518
+ Content-Type: text/html;
43519
+ charset=UTF-8
43520
+ Content-Transfer-Encoding: 7bit
43521
+
43522
+ <h1>Welcome</h1>
43523
+ user@mail.com
43524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43525
+  (0.2ms) SELECT COUNT(*) FROM "api_user_auth_auth_users"
43526
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_user_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex M
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails