Skip to content

Commit 059c4f7

Browse files
authored
Merge pull request #912 from solid/bugfix/toc-checkbox
Found a bug in how value of toc-checkbox is handled
2 parents 8499253 + 1523ec3 commit 059c4f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
{{#if tocUri}}
7676
<div class="checkbox">
7777
<label>
78-
<input type="checkbox" name="acceptToc">
78+
<input type="checkbox" name="acceptToc" value="true">
7979
I agree to the <a href="{{tocUri}}" target="_blank">Terms &amp; Conditions</a> of this service
8080
</label>
8181
</div>

test/integration/account-creation-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('AccountManager (OIDC account creation tests)', function () {
114114
it('should not create WebID if T&C is not accepted', (done) => {
115115
let subdomain = supertest('https://nicola.' + host)
116116
subdomain.post('/api/accounts/new')
117-
.send('username=nicola&password=12345&acceptToc=false')
117+
.send('username=nicola&password=12345&acceptToc=')
118118
.expect(400, done)
119119
})
120120

0 commit comments

Comments
 (0)