// HasUser checks if the user exists.
HasUser checks if the user exists.
// HasUser checks if the user exists .
func (s *DB) HasUser(name string) bool {
	s.mu.Lock()
	defer s.mu.Unlock()
	_, has := s.credentials[name]
	return has
}
func ( s * DB ) HasUser ( name string ) bool { s . mu . Lock ( ) defer s . mu . Unlock ( ) _ , has := s . credentials [ name ] return has }
HasUser checks if the user exists.
HasUser checks if the user exists .