mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-07 22:53:41 +08:00
feat: 不自动生成系统访问令牌
This commit is contained in:
@@ -311,7 +311,7 @@ func GenerateAccessToken(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
user.AccessToken = common.GetUUID()
|
||||
user.SetAccessToken(common.GetUUID())
|
||||
|
||||
if model.DB.Where("access_token = ?", user.AccessToken).First(user).RowsAffected != 0 {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
|
||||
Reference in New Issue
Block a user