Skip to content

Commit

Permalink
y
Browse files Browse the repository at this point in the history
  • Loading branch information
xbony2 committed Oct 9, 2015
1 parent 6e075bb commit 6ad1357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mediawiki/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def login(username, password)
@cookie = "#{result['login']['cookieprefix']}" \
"Session=#{result['login']['sessionid']}"
result = post(token_params, true, 'Set-Cookie' => @cookie)
@name = username if check_login(result['login']['result'], true) == true
@name = username if check_login(result['login']['result'], true)
end
end

Expand Down

0 comments on commit 6ad1357

Please sign in to comment.