(password, tokenID, tokenSecret string)
| 57 | } |
| 58 | |
| 59 | func wizardAuthState(password, tokenID, tokenSecret string) (bool, bool) { |
| 60 | hasPassword := strings.TrimSpace(password) != "" |
| 61 | hasToken := strings.TrimSpace(tokenID) != "" && strings.TrimSpace(tokenSecret) != "" |
| 62 | return hasPassword, hasToken |
| 63 | } |
| 64 | |
| 65 | func validateWizardAuth(password, tokenID, tokenSecret string) (bool, bool, string) { |
| 66 | hasPassword, hasToken := wizardAuthState(password, tokenID, tokenSecret) |
no outgoing calls