lib/facemock/oauth/authentication.rb in facemock-oauth-0.0.1 vs lib/facemock/oauth/authentication.rb in facemock-oauth-0.0.2

- old
+ new

@@ -6,10 +6,10 @@ DEFAULT_PATH = "/facemock/oauth" @path = DEFAULT_PATH def call(env) if env["PATH_INFO"] == Authentication.path && env["REQUEST_METHOD"] == "POST" - raw_body = env['rack.input'].gets + raw_body = URI.unescape(env['rack.input'].gets) body = query_string_to_hash(raw_body) email = body["email"] password = body["pass"] user = Facemock::Database::User.find_by_email(email)