示例#1
0
func (rcv *controller) get() {
	// Keep the input email
	if rcv.formUser.Email == "" {
		rcv.formUser.Email = rcv.loggedUser.Email
	}

	if rcv.formUser.Name == "" {
		rcv.formUser.Name = rcv.loggedUser.Name
	}

	rcv.formUser.Csrf = csrf.Token(rcv.Request)
	rcv.formUser.Captcha, rcv.formUser.Certification = captcha.Create()
	rcv.RenderContentPart(editTmpl, rcv.formUser)
}
示例#2
0
func (rcv *controller) get() {
	rcv.formUser.Name = rcv.loggedUser.Name
	rcv.formUser.Csrf = csrf.Token(rcv.Request)
	rcv.formUser.Captcha, rcv.formUser.Certification = captcha.Create()
	rcv.RenderContentPart(passwordTmpl, rcv.formUser)
}
示例#3
0
func (rcv *controller) get() {
	rcv.RenderContentPart(signInTmpl, csrf.Token(rcv.Request))
}
示例#4
-1
func (rcv *controller) get() {

	// Generate and set csrf token into html
	rcv.formUser.Csrf = csrf.Token(rcv.Request)
	rcv.formUser.Captcha, rcv.formUser.Certification = captcha.Create()
	rcv.RenderContentPart(signUpTmpl, rcv.formUser)

}