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) }
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) }
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) }