1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

fix(api): check if admin user already exists when calling the /users/admin/init endpoint (#494)

This commit is contained in:
Anthony Lapenna 2017-01-12 18:17:28 +13:00 committed by GitHub
parent 2bdc9322de
commit 27e584fc14
2 changed files with 22 additions and 11 deletions

View file

@ -7,7 +7,8 @@ const (
// User errors.
const (
ErrUserNotFound = Error("User not found")
ErrUserNotFound = Error("User not found")
ErrAdminAlreadyInitialized = Error("Admin user already initialized")
)
// Endpoint errors.