You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package tmpl
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/taoshihan1991/imaptool/tools"
|
|
"net/http"
|
|
)
|
|
|
|
//登陆界面
|
|
func PageLogin(c *gin.Context) {
|
|
if noExist, _ := tools.IsFileNotExist("./install.lock"); noExist {
|
|
c.Redirect(302, "/install")
|
|
}
|
|
c.HTML(http.StatusOK, "login.html", nil)
|
|
}
|