mirror of
https://github.com/fumiama/go-nd-portal.git
synced 2026-07-02 09:00:25 +08:00
chore(lint): 改进代码样式 (#2)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0fb9dda436
commit
7b844523eb
@@ -90,7 +90,6 @@ func GetChallengeURL(
|
||||
username, domain string,
|
||||
cIP net.IP,
|
||||
timestamp int64) (string, error) {
|
||||
|
||||
v, err := query.Values(&GetChallengeReq{
|
||||
Callback: callback,
|
||||
Username: username + domain,
|
||||
@@ -115,7 +114,6 @@ func GetLoginURL(
|
||||
chksum,
|
||||
info string,
|
||||
timestamp int64) (string, error) {
|
||||
|
||||
v, err := query.Values(&GetPortalReq{
|
||||
Callback: callback,
|
||||
Action: "login",
|
||||
@@ -160,7 +158,6 @@ func GetUserInfo(
|
||||
password string,
|
||||
cIP net.IP,
|
||||
acid string) (string, error) {
|
||||
|
||||
var b strings.Builder
|
||||
err := json.NewEncoder(&b).Encode(&UserInfo{
|
||||
Username: username + domain,
|
||||
@@ -240,7 +237,6 @@ func (p *Portal) CheckSum(
|
||||
acid string,
|
||||
cIP net.IP,
|
||||
info string) string {
|
||||
|
||||
var buf [20]byte
|
||||
h := sha1.New()
|
||||
_, _ = h.Write(helper.StringToBytes(challenge))
|
||||
|
||||
Reference in New Issue
Block a user