about to be able to create user
This commit is contained in:
@@ -51,21 +51,12 @@
|
||||
<div id="newuser" style="display: none">
|
||||
<h2>Register User</h2>
|
||||
<p>All you need to start is a username and a password:</p>
|
||||
<form id="register" autocomplete="off">
|
||||
<input placeholder="username" autocomplete="off" type="text" id="user"/>
|
||||
<input placeholder="password" autocomplete="off" type="password" id="pwd" oninput="checkpwd(this.value, document.getElementById('pwd2').value)"/>
|
||||
<input placeholder="repeat password" autocomplete="off" type="password" id="pwd2" oninput="checkpwd(document.getElementById('pwd').value, this.value)"/>
|
||||
<button id="createuser" disabled>register</button>
|
||||
<form id="register" autocomplete="off" onsubmit="safechat.createuser(document.getElementById('user').value, document.getElementById('pwd').value)">
|
||||
<input placeholder="username" autocomplete="off" type="text" id="user" oninput="safechat.lookup(this.value)" />
|
||||
<input placeholder="password" autocomplete="off" type="password" id="pwd" oninput="safechat.checkpasswords(this.value, document.getElementById('pwd2').value)"/>
|
||||
<input placeholder="repeat password" autocomplete="off" type="password" id="pwd2" oninput="safechat.checkpasswords(document.getElementById('pwd').value, this.value)"/>
|
||||
<input id="createuser" type="submit" value="register" disabled />
|
||||
</form>
|
||||
<script>
|
||||
$("#user").on("input", function() {
|
||||
queryuser($('#user').val());
|
||||
});
|
||||
$("#createuser").on("click", function(event) {
|
||||
createkeypair($('#user').val(), $('#pwd').val());
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<p>Please chose any username, e.g. a pseudonym, your e-mail,
|
||||
your phone number, your real name, and chose a safe
|
||||
password.</p>
|
||||
@@ -184,9 +175,9 @@
|
||||
|
||||
<!-- Fatal: Abort -->
|
||||
|
||||
<div id="fatal">
|
||||
<div id="fatal" style="display: none">
|
||||
<h2 id="fatal-msg">Failure</h2>
|
||||
<p>The SafeChat has been aborted due to a fatal error.</p>
|
||||
<p>SafeChat has been aborted due to a fatal error.</p>
|
||||
<p>There is a problem in your browser. Please try to reload. If the problem persists, please update your web browser or try SafeChat in another browser.</p>
|
||||
<p>The following java script features are required:</p>
|
||||
<ul class="features">
|
||||
|
Reference in New Issue
Block a user