Actually verify compliance to a specific subscriber agreement
This commit is contained in:
parent
81fa97fb21
commit
6a518383ba
|
@ -319,7 +319,7 @@ func (wfe *WebFrontEndImpl) NewAuthorization(response http.ResponseWriter, reque
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if currReg.Agreement == "" {
|
if currReg.Agreement != wfe.SubscriberAgreementURL {
|
||||||
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -448,7 +448,7 @@ func (wfe *WebFrontEndImpl) NewCertificate(response http.ResponseWriter, request
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if reg.Agreement == "" {
|
if reg.Agreement != wfe.SubscriberAgreementURL {
|
||||||
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -534,7 +534,7 @@ func (wfe *WebFrontEndImpl) Challenge(authz core.Authorization, response http.Re
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if currReg.Agreement == "" {
|
if currReg.Agreement != wfe.SubscriberAgreementURL {
|
||||||
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
wfe.sendError(response, "Must agree to subscriber agreement before any further actions", nil, http.StatusForbidden)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue