Actually verify compliance to a specific subscriber agreement

This commit is contained in:
Richard Barnes 2015-05-31 22:52:19 -04:00
parent 81fa97fb21
commit 6a518383ba
1 changed files with 3 additions and 3 deletions

View File

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