1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-12 09:00:54 +00:00

[BREAKING] Add tests for username auth, fix form key names

Also, testing infrastructure
This commit is contained in:
Kane York 2015-12-16 14:14:19 -08:00
parent 26747a1104
commit c0500457a6
4 changed files with 252 additions and 22 deletions

View file

@ -142,9 +142,9 @@ func SendRemoteCommand(remoteCommand, data string, auth AuthInfo) (responseStr s
destURL := fmt.Sprintf("%s/cmd/%s", backendURL, remoteCommand)
var authKey string
if auth.UsernameValidated {
authKey = "usernameClaimed"
authKey = "usernameVerified"
} else {
authKey = "username"
authKey = "usernameClaimed"
}
formData := url.Values{