func ForgotPasswd(ctx *context.Context) {
	ctx.Data["Title"] = ctx.Tr("auth.forgot_password_title")

	if setting.MailService == nil {
		log.Warn(ctx.Tr("auth.disable_forgot_password_mail_admin"))
		ctx.Data["IsResetDisable"] = true
		ctx.HTML(http.StatusOK, tplForgotPassword)
		return
	}

	email := ctx.Query("email")
	ctx.Data["Email"] = email

	ctx.Data["IsResetRequest"] = true
	ctx.HTML(http.StatusOK, tplForgotPassword)
}
// ForgotPasswd render the forget password page
ForgotPasswd render the forget password page
// ForgotPasswd render the forget password page
func ForgotPasswd(ctx *context.Context) {
	ctx.Data["Title"] = ctx.Tr("auth.forgot_password_title")
	if setting.MailService == nil {
		log.Warn(ctx.Tr("auth.disable_forgot_password_mail_admin"))
		ctx.Data["IsResetDisable"] = true
		ctx.HTML(http.StatusOK, tplForgotPassword)
		return
	}
	email := ctx.Query("email")
	ctx.Data["Email"] = email
	ctx.Data["IsResetRequest"] = true
	ctx.HTML(http.StatusOK, tplForgotPassword)
}
func ForgotPasswd ( ctx * context . Context ) { ctx . Data [ " " ] = ctx . Tr ( " " ) if setting . MailService == nil { log . Warn ( ctx . Tr ( " " ) ) ctx . Data [ " " ] = true ctx . HTML ( http . StatusOK , tplForgotPassword ) return } email := ctx . Query ( " " ) ctx . Data [ " " ] = email ctx . Data [ " " ] = true ctx . HTML ( http . StatusOK , tplForgotPassword ) }
ForgotPasswd render the forget password page
ForgotPasswd render the forget password page