Esempio n. 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)
}
Esempio n. 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)
}
Esempio n. 3
-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)

}