Пример #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
-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)

}