diff --git a/README.md b/README.md
index 307cd0a..2691a17 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
diff --git a/cmd/dashboard/controller/guest_page.go b/cmd/dashboard/controller/guest_page.go
index 668c5fe..eb0e1be 100644
--- a/cmd/dashboard/controller/guest_page.go
+++ b/cmd/dashboard/controller/guest_page.go
@@ -51,7 +51,15 @@ func (gp *guestPage) serve() {
}
func (gp *guestPage) login(c *gin.Context) {
+ LoginType := "GitHub"
+ RegistrationLink := "https://github.com/join"
+ if dao.Conf.Oauth2.Type == model.ConfigTypeGitee {
+ LoginType = "Gitee"
+ RegistrationLink = "https://gitee.com/signup"
+ }
c.HTML(http.StatusOK, "dashboard/login", mygin.CommonEnvironment(c, gin.H{
- "Title": "登录",
+ "Title": "登录",
+ "LoginType": LoginType,
+ "RegistrationLink": RegistrationLink,
}))
}
diff --git a/resource/template/dashboard/login.html b/resource/template/dashboard/login.html
index 80a8def..397f129 100644
--- a/resource/template/dashboard/login.html
+++ b/resource/template/dashboard/login.html
@@ -6,12 +6,12 @@
登录
diff --git a/service/dao/dao.go b/service/dao/dao.go
index f1301d8..3b6c8a9 100644
--- a/service/dao/dao.go
+++ b/service/dao/dao.go
@@ -13,7 +13,7 @@ import (
pb "github.com/naiba/nezha/proto"
)
-var Version = "v0.6.4" // !!记得修改 README 中的 badge 版本!!
+var Version = "v0.6.5" // !!记得修改 README 中的 badge 版本!!
const (
SnapshotDelay = 3