mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +00:00
Add debug button to speed up account creation
This commit is contained in:
parent
bab48abcfd
commit
37e6bb159e
1 changed files with 28 additions and 1 deletions
|
@ -79,3 +79,30 @@
|
||||||
|
|
||||||
<input type="submit" value="Register" id="submit" class="ui green button">
|
<input type="submit" value="Register" id="submit" class="ui green button">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
@if (ServerStatics.IsDebug)
|
||||||
|
{
|
||||||
|
<button class="ui red button" onclick="fill()">DEBUG: Fill with everything but email</button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const usernameField = document.getElementById("text");
|
||||||
|
const emailField = document.getElementById("emailAddress");
|
||||||
|
const passwordField = document.getElementById("password");
|
||||||
|
const confirmPasswordField = document.getElementById("confirmPassword");
|
||||||
|
|
||||||
|
function fill() {
|
||||||
|
const min = 100;
|
||||||
|
const max = 99999999;
|
||||||
|
|
||||||
|
const rand = Math.floor(Math.random() * (max - min + 1) + min);
|
||||||
|
|
||||||
|
usernameField.value = rand.toString();
|
||||||
|
passwordField.value = rand.toString();
|
||||||
|
confirmPasswordField.value = rand.toString();
|
||||||
|
|
||||||
|
emailField.focus();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue