Skip to content

Commit 1235e3f

Browse files
committed
Fixed minor nits
1 parent 6f0fd7b commit 1235e3f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

default-views/account/register-form.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
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 &amp; Conditions</a> of this service
7979
</label>
8080
</div>
8181
{{/if}}

lib/requests/auth-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

lib/requests/create-account-request.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)