MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / userIsExit

Function userIsExit

cli/cmd/login.go:163–170  ·  view source on GitHub ↗
(auths []model.Auth, username string, loginurl string)

Source from the content-addressed store, hash-verified

161}
162
163func userIsExit(auths []model.Auth, username string, loginurl string) bool {
164 for _, a := range auths {
165 if a.UserName == username && a.LoginUrl == loginurl {
166 return true
167 }
168 }
169 return false
170}
171
172func init() {
173 loginCmd.Flags().StringP("username", "u", "", i18nInstance.Login.Info_help_flag_username)

Callers 1

saveTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected