summaryrefslogtreecommitdiff
path: root/tests/helpers/srp_helper.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-02 23:47:35 -0800
committerelijah <elijah@riseup.net>2014-12-02 23:48:11 -0800
commitacd6dd2848f38ba1b728f263f297bc6d2ad9e4bb (patch)
tree59e4950ce5ab8dcecde717a2d55485833fea5cc7 /tests/helpers/srp_helper.rb
parent5c300d2399398a7384728ef11b00642b8cfe5128 (diff)
add soledad sync test to `leap test`. closes #6431
Diffstat (limited to 'tests/helpers/srp_helper.rb')
-rw-r--r--tests/helpers/srp_helper.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/helpers/srp_helper.rb b/tests/helpers/srp_helper.rb
index 9f4d7f5b..0aa1b1fb 100644
--- a/tests/helpers/srp_helper.rb
+++ b/tests/helpers/srp_helper.rb
@@ -135,16 +135,14 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5
class User
include SRP::Util
- attr_accessor :username
- attr_accessor :password
- attr_accessor :salt
- attr_accessor :verifier
+ attr_accessor :username, :password, :salt, :verifier, :id, :session_token, :ok
def initialize
@username = "test_user_" + SecureRandom.urlsafe_base64(10).downcase.gsub(/[_-]/, '')
@password = "password_" + SecureRandom.urlsafe_base64(10)
@salt = bigrand(4).hex
@verifier = modpow(GENERATOR, private_key)
+ @ok = false
end
def private_key