Admin: Add support to configure default admin email (#54363)

This commit is contained in:
mhuangwm
2022-09-07 14:38:40 +02:00
committed by GitHub
parent 687b0b1726
commit 39102c6656
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ func (ss *SQLStore) ensureMainOrgAndAdminUser() error {
ss.log.Debug("Creating default admin user")
if _, err := ss.createUser(ctx, sess, user.CreateUserCommand{
Login: ss.Cfg.AdminUser,
Email: ss.Cfg.AdminUser + "@localhost",
Email: ss.Cfg.AdminEmail,
Password: ss.Cfg.AdminPassword,
IsAdmin: true,
}); err != nil {