Skip to content

Consume hcaptcha and pwn deps #22610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: appeas linter
Signed-off-by: jolheiser <[email protected]>
  • Loading branch information
jolheiser committed Jan 26, 2023
commit 7ce0b988e4a45950d4d724a3877855726205ab70
6 changes: 3 additions & 3 deletions modules/hcaptcha/hcaptcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ package hcaptcha

import (
"context"
"encoding/json"
"io/ioutil"
"io"
"net/http"
"net/url"
"strings"

"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/setting"
)

Expand Down Expand Up @@ -104,7 +104,7 @@ func (c *Client) Verify(token string, opts PostOptions) (*Response, error) {
return nil, err
}

body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
Expand Down
3 changes: 1 addition & 2 deletions modules/password/pwn/pwn.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"strconv"
"strings"
Expand Down Expand Up @@ -96,7 +95,7 @@ func (c *Client) CheckPassword(pw string, padding bool) (int, error) {
return -1, err
}

body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return -1, err
}
Expand Down