summaryrefslogtreecommitdiff
path: root/test/integration/api/update_account_test.rb
diff options
context:
space:
mode:
authorThais Siqueira <thais.siqueira@gmail.com>2017-03-10 11:28:39 -0300
committerThais Siqueira <thais.siqueira@gmail.com>2017-03-10 11:28:39 -0300
commit417818997fca057635793cdf60a3e1bfa6716e35 (patch)
tree41406bc3f1a88fa606b871a810b00679c7a69859 /test/integration/api/update_account_test.rb
parent67824594246aee807ebacdf61c4e2d0a136eab73 (diff)
Adds recovery code to user account
Related with https://github.com/pixelated/pixelated-user-agent/issues/924 With @aarni
Diffstat (limited to 'test/integration/api/update_account_test.rb')
-rw-r--r--test/integration/api/update_account_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/api/update_account_test.rb b/test/integration/api/update_account_test.rb
index 1492006..108f05d 100644
--- a/test/integration/api/update_account_test.rb
+++ b/test/integration/api/update_account_test.rb
@@ -28,6 +28,12 @@ class UpdateAccountTest < SrpTest
assert server_auth["M2"]
end
+ test "update recovery code via api" do
+ authenticate
+ update_user recovery_code_verifier: "123", recovery_code_salt: "456"
+ assert last_response.successful?
+ end
+
test "change login with password_verifier" do
authenticate
new_login = 'zaph'