mirror of
https://github.com/Xevion/scla-unsubscribe.git
synced 2025-12-08 16:08:26 -06:00
Fix CheckLogin never returning true
This commit is contained in:
@@ -66,7 +66,7 @@ func Login(username string, password string) error {
|
|||||||
request.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
request.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||||
|
|
||||||
// Send the login request
|
// Send the login request
|
||||||
response, body, err := DoRequest(request)
|
response, err = DoRequestNoRead(request)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal().Err(err).Msg("Error sending login request")
|
log.Fatal().Err(err).Msg("Error sending login request")
|
||||||
@@ -188,6 +188,7 @@ func CheckLoggedIn() (bool, error) {
|
|||||||
logOffFound = true
|
logOffFound = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user