repository, user: fix vet issues