go-wind-admin icon indicating copy to clipboard operation
go-wind-admin copied to clipboard

[bug] mac使用docker-compose部署的后端初始化admin和admin密码不正确

Open ouyang6559 opened this issue 3 months ago • 0 comments

Image

{code: 400, reason: "INVALID_PASSWORD", message: "invalid username or password", metadata: {}} code : 400 message : "invalid username or password" metadata : {} reason : "INVALID_PASSWORD"

对应代码位置 func (r *UserCredentialRepo) CreateWithTx(ctx context.Context, tx *ent.Tx, data *authenticationV1.UserCredential) error { if data == nil { return authenticationV1.ErrorBadRequest("invalid request") }

和

// 创建默认用户凭证
for _, userCredential := range constants.DefaultUserCredentials {
	if err = s.userCredentialRepo.Create(ctx, &authenticationV1.CreateUserCredentialRequest{
		Data: userCredential,
	}); err != nil {
		s.log.Errorf(ctx, "create default user credential err: %v", err)
		return err
	}
}

ouyang6559 avatar Sep 04 '26 13:09 ouyang6559