func (p *politeiawww) handleVerifyUpdateUserKey(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleVerifyUpdateUserKey")

	// Get the new user verify command.
	var vuu v1.VerifyUpdateUserKey
	decoder := json.NewDecoder(r.Body)
	if err := decoder.Decode(&vuu); err != nil {
		RespondWithError(w, r, 0, "handleVerifyUpdateUserKey: unmarshal", v1.UserError{
			ErrorCode: v1.ErrorStatusInvalidInput,
		})
		return
	}

	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUpdateUserKey: getSessionUser %v", err)
		return
	}

	_, err = p.backend.ProcessVerifyUpdateUserKey(user, vuu)
	if err != nil {
		RespondWithError(w, r, 0, "handleVerifyUpdateUserKey: "+
			"ProcessVerifyUpdateUserKey %v", err)
		return
	}

	util.RespondWithJSON(w, http.StatusOK, v1.VerifyUpdateUserKeyReply{})
}
// handleVerifyUpdateUserKey handles the incoming update user key verify command. It verifies
// that the user with the provided email has a verification token that matches
// the provided token and that the verification token has not yet expired.
handleVerifyUpdateUserKey handles the incoming update user key verify command. It verifies
that the user with the provided email has a verification token that matches
the provided token and that the verification token has not yet expired.
// handleVerifyUpdateUserKey handles the incoming update user key verify command . It verifies // that the user with the provided email has a verification token that matches // the provided token and that the verification token has not yet expired .
func (p *politeiawww) handleVerifyUpdateUserKey(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleVerifyUpdateUserKey")
	var vuu v1.VerifyUpdateUserKey
	decoder := json.NewDecoder(r.Body)
	if err := decoder.Decode(&vuu); err != nil {
		RespondWithError(w, r, 0, "handleVerifyUpdateUserKey: unmarshal", v1.UserError{
			ErrorCode: v1.ErrorStatusInvalidInput,
		})
		return
	}
	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleVerifyUpdateUserKey: getSessionUser %v", err)
		return
	}
	_, err = p.backend.ProcessVerifyUpdateUserKey(user, vuu)
	if err != nil {
		RespondWithError(w, r, 0, "handleVerifyUpdateUserKey: "+
			"ProcessVerifyUpdateUserKey %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, v1.VerifyUpdateUserKeyReply{})
}
func ( p * politeiawww ) handleVerifyUpdateUserKey ( w http . ResponseWriter , r * http . Request ) { log . Tracef ( " " ) var vuu v1 . VerifyUpdateUserKey decoder := json . NewDecoder ( r . Body ) if err := decoder . Decode ( & vuu ) ; err != nil { RespondWithError ( w , r , 0 , " " , v1 . UserError { ErrorCode : v1 . ErrorStatusInvalidInput , } ) return } user , err := p . getSessionUser ( r ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } _ , err = p . backend . ProcessVerifyUpdateUserKey ( user , vuu ) if err != nil { RespondWithError ( w , r , 0 , " " + " " , err ) return } util . RespondWithJSON ( w , http . StatusOK , v1 . VerifyUpdateUserKeyReply { } ) }
handleVerifyUpdateUserKey handles the incoming update user key verify command.
handleVerifyUpdateUserKey handles the incoming update user key verify command .
// Get the new user verify command.