pcmt/modules/user/const.go
leo 6ce05ea74d
All checks were successful
continuous-integration/drone/push Build is passing
feat: add initial admin user creation
have the app create the initial admin user:
* if the db has not yet been set up
* if there are not users
* if the config value for Init.CreateAdmin is True
* if the admin password is not empty

default username, email values can be seen in modules/user/const.go
2023-05-21 18:50:41 +02:00

12 lines
313 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
package user
const (
// AdminUname is the username of the initial administrator user.
AdminUname = "admin"
// AdminEmail is the email of the initial administrator user.
AdminEmail = "admin@adminmail.admindomain"
)