diff --git a/admin.go b/admin.go index 4812da4..1c389fd 100644 --- a/admin.go +++ b/admin.go @@ -133,7 +133,8 @@ func (a *AdminConfig) Run() { protected.GET("home", HttpAnyHome) unprotected := r.Group("u", HttpNoAuth()) - unprotected.POST("signin", HttpPostSignIn) + unprotected.GET("signin", HttpAnySignIn) + unprotected.POST("signin", HttpAnySignIn) unprotected.GET("recover", HttpGetRecover) srv := &http.Server{ diff --git a/http.go b/http.go index 38f21ef..c92a181 100644 --- a/http.go +++ b/http.go @@ -23,7 +23,7 @@ func HttpNoAuth() gin.HandlerFunc { } } -func HttpPostSignIn(c *gin.Context) { +func HttpAnySignIn(c *gin.Context) { if GetWebSessionUserID(c) > 0 { c.Redirect(http.StatusTemporaryRedirect, "/p/home") } else { diff --git a/version.go b/version.go index 532793f..883c83e 100644 --- a/version.go +++ b/version.go @@ -1,7 +1,7 @@ // Code generated by version.sh (@generated) DO NOT EDIT. package main -var githash = "cd94f48" +var githash = "d8cfb3c" var branch = "master" -var buildstamp = "2024-11-17_16:02:29" -var commits = "95" -var version = "cd94f48-b95 - 2024-11-17_16:02:29" +var buildstamp = "2024-11-17_16:26:08" +var commits = "96" +var version = "d8cfb3c-b96 - 2024-11-17_16:26:08"