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:
parent
2bdc9322de
commit
27e584fc14
2 changed files with 22 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue