improve logon error retrun, add cookie/validation error/logout ability checks

This commit is contained in:
2023-12-28 08:50:38 -06:00
parent 8e78128b1e
commit 4dcff9bc7b
2 changed files with 67 additions and 8 deletions

View File

@@ -32,7 +32,10 @@ func main() {
username := os.Getenv("UTSA_USERNAME")
password := os.Getenv("UTSA_PASSWORD")
Login(username, password)
err := Login(username, password)
if err != nil {
log.Fatal().Err(err).Msg("Failed to login")
}
// email := strings.ToLower(fmt.Sprintf("%s.%s@my.utsa.edu", fake.FirstName(), fake.LastName()))