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

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

	reply, err := p.backend.CreateLoginReply(user)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleMe: CreateLoginReply %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, *reply)
}
// handleMe returns logged in user information.
handleMe returns logged in user information.
// handleMe returns logged in user information .
func (p *politeiawww) handleMe(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleMe")
	user, err := p.getSessionUser(r)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleMe: getSessionUser %v", err)
		return
	}
	reply, err := p.backend.CreateLoginReply(user)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleMe: CreateLoginReply %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, *reply)
}
func ( p * politeiawww ) handleMe ( w http . ResponseWriter , r * http . Request ) { log . Tracef ( " " ) user , err := p . getSessionUser ( r ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } reply , err := p . backend . CreateLoginReply ( user ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } util . RespondWithJSON ( w , http . StatusOK , * reply ) }
handleMe returns logged in user information.
handleMe returns logged in user information .