File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7575 <div class =" checkbox" >
7676 <label >
7777 <input type =" checkbox" name =" acceptToc" >
78- I agree to the <a href =" {{ tocUri }} " target =" _blank" >Terms & Conditions</a > of this service
78+ I agree to the <a href =" {{ tocUri }} " target =" _blank" >Terms & Conditions</a > of this service
7979 </label >
8080 </div >
8181 {{ /if }}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class AuthRequest {
8888
8989 let authQueryParams = AuthRequest . extractAuthParams ( req )
9090 let returnToUrl = AuthRequest . parseParameter ( req , 'returnToUrl' )
91- const acceptToc = AuthRequest . parseParameter ( req , 'acceptToc' )
91+ const acceptToc = AuthRequest . parseParameter ( req , 'acceptToc' ) === 'true'
9292
9393 let options = {
9494 response : res ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class CreateAccountRequest extends AuthRequest {
3636
3737 this . username = options . username
3838 this . userAccount = options . userAccount
39- this . acceptToc = options . acceptToc === 'true'
39+ this . acceptToc = options . acceptToc
4040 }
4141
4242 /**
@@ -284,7 +284,7 @@ class CreateOidcAccountRequest extends CreateAccountRequest {
284284 }
285285
286286 if ( this . enforceToc && ! this . acceptToc ) {
287- error = new Error ( 'Accepting Terms & Conditions are required for this service' )
287+ error = new Error ( 'Accepting Terms & Conditions is required for this service' )
288288 error . statusCode = 400
289289 throw error
290290 }
@@ -352,7 +352,7 @@ class CreateTlsAccountRequest extends CreateAccountRequest {
352352 }
353353
354354 if ( this . enforceToc && ! this . acceptToc ) {
355- error = new Error ( 'Accepting Terms & Conditions are required for this service' )
355+ error = new Error ( 'Accepting Terms & Conditions is required for this service' )
356356 error . statusCode = 400
357357 throw error
358358 }
You can’t perform that action at this time.
0 commit comments