Add: rename repository

This commit is contained in:
Unknown 2014-04-03 15:50:55 -04:00
parent bbadbbdf68
commit 79a610592e
5 changed files with 71 additions and 7 deletions

View file

@ -90,7 +90,9 @@ func (ctx *Context) HTML(status int, name string, htmlOpt ...HTMLOptions) {
func (ctx *Context) RenderWithErr(msg, tpl string, form auth.Form) {
ctx.Data["HasError"] = true
ctx.Data["ErrorMsg"] = msg
auth.AssignForm(form, ctx.Data)
if form != nil {
auth.AssignForm(form, ctx.Data)
}
ctx.HTML(200, tpl)
}