(name string)
| 733 | } |
| 734 | |
| 735 | func Exists(name string) bool { |
| 736 | |
| 737 | for _, u := range GetAllActiveUsers() { |
| 738 | if strings.ToLower(u.Username) == strings.ToLower(name) { |
| 739 | return true |
| 740 | } |
| 741 | } |
| 742 | |
| 743 | idx := GetUserIndex() |
| 744 | _, found := idx.FindByUsername(name) |
| 745 | |
| 746 | return found |
| 747 | } |
| 748 | |
| 749 | func FindUserId(username string) int { |
| 750 | idx := GetUserIndex() |
no test coverage detected