🔖 dashboard v0.12.27 取消用户名unique,有些用户 gitee/github 用户名相同导致无法启动
				
					
				
			This commit is contained in:
		
							parent
							
								
									b5f33a6c5b
								
							
						
					
					
						commit
						0a6658fcb4
					
				@ -4,7 +4,7 @@
 | 
				
			|||||||
  <br>
 | 
					  <br>
 | 
				
			||||||
  <small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
 | 
					  <small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
 | 
				
			||||||
  <br><br>
 | 
					  <br><br>
 | 
				
			||||||
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.12.26&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github"> <img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge"> <img src="https://img.shields.io/badge/Installer-v0.8.2-brightgreen?style=for-the-badge&logo=linux">
 | 
					<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.12.27&logo=github&style=for-the-badge"> <img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github"> <img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge"> <img src="https://img.shields.io/badge/Installer-v0.8.2-brightgreen?style=for-the-badge&logo=linux">
 | 
				
			||||||
  <br>
 | 
					  <br>
 | 
				
			||||||
  <br>
 | 
					  <br>
 | 
				
			||||||
  <p>:trollface: <b>哪吒监控</b> 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,计划任务和在线终端。</p>
 | 
					  <p>:trollface: <b>哪吒监控</b> 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,计划任务和在线终端。</p>
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
type User struct {
 | 
					type User struct {
 | 
				
			||||||
	Common
 | 
						Common
 | 
				
			||||||
	Login     string `gorm:"uniqueIndex" json:"login,omitempty"` // 登录名
 | 
						Login     string `json:"login,omitempty"`      // 登录名
 | 
				
			||||||
	AvatarURL string `json:"avatar_url,omitempty"` // 头像地址
 | 
						AvatarURL string `json:"avatar_url,omitempty"` // 头像地址
 | 
				
			||||||
	Name      string `json:"name,omitempty"`       // 昵称
 | 
						Name      string `json:"name,omitempty"`       // 昵称
 | 
				
			||||||
	Blog      string `json:"blog,omitempty"`       // 网站链接
 | 
						Blog      string `json:"blog,omitempty"`       // 网站链接
 | 
				
			||||||
@ -19,7 +19,7 @@ type User struct {
 | 
				
			|||||||
	Hireable  bool   `json:"hireable,omitempty"`
 | 
						Hireable  bool   `json:"hireable,omitempty"`
 | 
				
			||||||
	Bio       string `json:"bio,omitempty"` // 个人简介
 | 
						Bio       string `json:"bio,omitempty"` // 个人简介
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Token        string    `gorm:"uniqueIndex" json:"-"`    // 认证 Token
 | 
						Token        string    `json:"-"`                       // 认证 Token
 | 
				
			||||||
	TokenExpired time.Time `json:"token_expired,omitempty"` // Token 过期时间
 | 
						TokenExpired time.Time `json:"token_expired,omitempty"` // Token 过期时间
 | 
				
			||||||
	SuperAdmin   bool      `json:"super_admin,omitempty"`   // 超级管理员
 | 
						SuperAdmin   bool      `json:"super_admin,omitempty"`   // 超级管理员
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -12,7 +12,7 @@ import (
 | 
				
			|||||||
	"github.com/naiba/nezha/pkg/utils"
 | 
						"github.com/naiba/nezha/pkg/utils"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var Version = "v0.12.26" // !!记得修改 README 中的 badge 版本!!
 | 
					var Version = "v0.12.27" // !!记得修改 README 中的 badge 版本!!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
	Conf  *model.Config
 | 
						Conf  *model.Config
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user