webui icon indicating copy to clipboard operation
webui copied to clipboard

Bug: `auth`在`mysql`下多次创建admin用户

Open Hieuzest opened this issue 2 years ago • 3 comments

Describe the bug

auth 会upsert一个id=0的user admin 而mysql默认的auto_increment为1 导致在mysql环境下每次启动都会多一行admin

Steps to reproduce

/

Expected behavior

/

Screenshots

No response

Versions

  • OS:
  • Platform:
  • Node version:
  • Koishi version:

Additional context

No response

Hieuzest avatar Oct 19 '23 03:10 Hieuzest

你是不是没有设置 unique name

shigma avatar Oct 19 '23 06:10 shigma

你是不是没有设置 unique name

需要手动在数据库设置么?

maxoyed avatar Oct 27 '23 18:10 maxoyed

你是不是没有设置 unique name

需要手动在数据库设置么?

目前看起来是程序里没有自动设置,急用的得先手动一下。

shigma avatar Oct 27 '23 19:10 shigma