// PingRecovery only checks whether the token in the URL is valid or not; no
// writable modifications are being done.
PingRecovery only checks whether the token in the URL is valid or not; no
writable modifications are being done.
// PingRecovery only checks whether the token in the URL is valid or not ; no // writable modifications are being done .
func (h *Handler) PingRecovery(w http.ResponseWriter, r *http.Request) {
	usr, tok, err := h.FetchByToken(r)
	if err != nil {
		httpflow.RespondError(h.log, w, r, err)
		return
	}
	if err = usr.ExposeCore().Recovery.Check(tok); err != nil {
		httpflow.RespondError(h.log, w, r, err)
		return
	}
	httpflow.Respond(h.log, w, r, nil, http.StatusNoContent)
}
func ( h * Handler ) PingRecovery ( w http . ResponseWriter , r * http . Request ) { usr , tok , err := h . FetchByToken ( r ) if err != nil { httpflow . RespondError ( h . log , w , r , err ) return } if err = usr . ExposeCore ( ) . Recovery . Check ( tok ) ; err != nil { httpflow . RespondError ( h . log , w , r , err ) return } httpflow . Respond ( h . log , w , r , nil , http . StatusNoContent ) }
PingRecovery only checks whether the token in the URL is valid or not; no
writable modifications are being done.
PingRecovery only checks whether the token in the URL is valid or not ; no writable modifications are being done .