Skip to content

Commit 7757fce

Browse files
author
deiu
committed
working UI
1 parent 89e631b commit 7757fce

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎static/signup.html‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ <h2>Create your local account.</h2>
4747
<form id="cert" method="POST" action='/accounts/cert' target="spkacResult" style="display: none">
4848
<h2>Finish by issuing credentials in the form of a certificate</h2>
4949
<keygen name="spkac" hidden>
50-
<p>Your WebID is: <span id="webid"></span></p>
50+
<input type="hidden" id="webid" name="webid" value="">
51+
<p>Your WebID is: <span id="your-webid"></span></p>
5152
<br>
5253
<button onclick='createGen()'>Issue credentials</button>
5354
</form>
@@ -73,9 +74,12 @@ <h2>Finish by issuing credentials in the form of a certificate</h2>
7374
if (!webid || webid.length === 0) {
7475
return done(new Error('WebID is not set in User'))
7576
}
76-
77-
7877
// Account is created
78+
document.querySelector('#webid').value = webid
79+
document.querySelector('#your-webid').innerHTML = webid
80+
document.querySelector('#accounts').style.display = 'none'
81+
document.querySelector('#cert').style.display = ''
82+
7983
}
8084
http.send(data)
8185
}
@@ -101,9 +105,6 @@ <h2>Finish by issuing credentials in the form of a certificate</h2>
101105
if (err) {
102106
console.log(err)
103107
}
104-
document.querySelector('#accounts').style.display = 'none'
105-
document.querySelector('#cert').style.display = ''
106-
document.querySelector('#webid').value = webid
107108
}
108109

109110
</script>

0 commit comments

Comments
 (0)