lib/smile/smug.rb in smile-0.4.0 vs lib/smile/smug.rb in smile-0.4.1

- old
+ new

@@ -13,11 +13,11 @@ # @param [String] email The username ( Nickname ) for the SmugMug account # @param [String] password The password for the SmugMug account # # @return [Smile::SmugMug.new] An Smug object that has been authenticated def auth( email, pass ) - json = web_method_call( + json = secure_web_method_call( { :method => 'smugmug.login.withPassword', :EmailAddress => email, :Password => pass } ) self.session.id = json["login"]["session"]["id"] json @@ -26,10 +26,10 @@ # Login to SmugMug using an anonymously account # This will allow you to execute many functions, but no user specific functions # # @return [Smile::SmugMug.new] An Smug object that has been authenticated def auth_anonymously - json = web_method_call( { :method => 'smugmug.login.anonymously' } ) + json = secure_web_method_call( { :method => 'smugmug.login.anonymously' } ) self.session.id = json["login"]["session"]["id"] json end