Refine the directories.

This commit is contained in:
zicla
2019-04-26 02:30:04 +08:00
parent 61b14fe82b
commit b3c52ea50e
40 changed files with 214 additions and 162 deletions

View File

@ -3,6 +3,7 @@ package rest
import (
"net/http"
"tank/rest/result"
"tank/rest/tool"
)
type PreferenceController struct {
@ -90,7 +91,7 @@ func (this *PreferenceController) SystemCleanup(writer http.ResponseWriter, requ
user := this.checkUser(writer, request)
password := request.FormValue("password")
if !MatchBcrypt(password, user.Password) {
if !tool.MatchBcrypt(password, user.Password) {
this.PanicBadRequest("密码错误,不能执行!")
}