MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / wizardAuthState

Function wizardAuthState

internal/ui/components/config_wizard.go:59–63  ·  view source on GitHub ↗
(password, tokenID, tokenSecret string)

Source from the content-addressed store, hash-verified

57}
58
59func 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
65func validateWizardAuth(password, tokenID, tokenSecret string) (bool, bool, string) {
66 hasPassword, hasToken := wizardAuthState(password, tokenID, tokenSecret)

Callers 2

validateWizardAuthFunction · 0.85
TestWizardAuthStateFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWizardAuthStateFunction · 0.68