-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vouv
committed
Nov 2, 2020
1 parent
5131396
commit d3f69b1
Showing
9 changed files
with
81 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package model | ||
|
||
import ( | ||
"fmt" | ||
"net/url" | ||
) | ||
|
||
func Challenge(username string) url.Values { | ||
return url.Values{ | ||
"username": {username}, | ||
"ip": {""}, | ||
} | ||
} | ||
|
||
func Login(username, password string, acid int) url.Values { | ||
return url.Values{ | ||
"action": {"login"}, | ||
"username": {username}, | ||
"password": {password}, | ||
"ac_id": {fmt.Sprint(acid)}, | ||
"ip": {""}, | ||
"info": {}, | ||
"chksum": {}, | ||
"n": {"200"}, | ||
"type": {"1"}, | ||
} | ||
} | ||
|
||
func Logout(username string) url.Values { | ||
return url.Values{ | ||
"action": {"logout"}, | ||
"username": {username}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters