lib/insales_api/app.rb in insales_api-0.1.0 vs lib/insales_api/app.rb in insales_api-0.1.1

- old
+ new

@@ -55,11 +55,11 @@ login: api_autologin_url || "http://#{api_host}/#{api_autologin_path}", }.to_query, ).to_s end - def auth_token - @auth_token ||= InsalesApi::Password.create(password, salt) + def auth_token(salt = self.salt, user_email = '', user_name = '', user_id = '') + @auth_token ||= InsalesApi::Password.create(password, salt, user_email, user_name, user_id) end def salt @salt ||= SecureRandom.hex end