MCPcopy Index your code
hub / github.com/eyebluecn/tank / SystemCleanup

Method SystemCleanup

code/rest/preference_controller.go:237–250  ·  view source on GitHub ↗

cleanup system data.

(writer http.ResponseWriter, request *http.Request)

Source from the content-addressed store, hash-verified

235
236// cleanup system data.
237func (this *PreferenceController) SystemCleanup(writer http.ResponseWriter, request *http.Request) *result.WebResult {
238
239 user := this.checkUser(request)
240 password := request.FormValue("password")
241
242 if !util.MatchBcrypt(password, user.Password) {
243 panic(result.BadRequest("password error"))
244 }
245
246 //this will trigger every bean to cleanup.
247 core.CONTEXT.Cleanup()
248
249 return this.Success("OK")
250}

Callers

nothing calls this directly

Calls 5

MatchBcryptFunction · 0.92
BadRequestFunction · 0.92
checkUserMethod · 0.80
SuccessMethod · 0.80
CleanupMethod · 0.65

Tested by

no test coverage detected