Challenge 4 SQL is working

This commit is contained in:
Nanne Baars
2017-04-15 21:15:46 +02:00
parent ed0e1a1f37
commit ec36dbd43c
4 changed files with 119 additions and 15 deletions

View File

@ -32,10 +32,10 @@
action="/WebGoat/challenge/4"
enctype="application/json;charset=UTF-8" role="form">
<div class="form-group">
<input type="text" name="username" id="username4" tabindex="1" class="form-control" placeholder="Username" value=""/>
<input type="text" name="username_login" id="username4" tabindex="1" class="form-control" placeholder="Username" value=""/>
</div>
<div class="form-group">
<input type="password" name="password" id="password4" tabindex="2" class="form-control" placeholder="Password"/>
<input type="password" name="password_login" id="password4" tabindex="2" class="form-control" placeholder="Password"/>
</div>
<div class="form-group text-center">
<input type="checkbox" tabindex="3" class="" name="remember" id="remember"/>
@ -63,16 +63,16 @@
action="/WebGoat/challenge/4"
enctype="application/json;charset=UTF-8" style="display: none;" role="form">
<div class="form-group">
<input type="text" name="username-reg" id="username" tabindex="1" class="form-control" placeholder="Username" value=""/>
<input type="text" name="username_reg" id="username" tabindex="1" class="form-control" placeholder="Username" value=""/>
</div>
<div class="form-group">
<input type="email" name="email-reg" id="email" tabindex="1" class="form-control" placeholder="Email Address" value=""/>
<input type="email" name="email_reg" id="email" tabindex="1" class="form-control" placeholder="Email Address" value=""/>
</div>
<div class="form-group">
<input type="password" name="password-reg" id="password" tabindex="2" class="form-control" placeholder="Password"/>
<input type="password" name="password_reg" id="password" tabindex="2" class="form-control" placeholder="Password"/>
</div>
<div class="form-group">
<input type="password" name="confirm-password-reg" id="confirm-password" tabindex="2" class="form-control" placeholder="Confirm Password"/>
<input type="password" name="confirm_password_reg" id="confirm-password" tabindex="2" class="form-control" placeholder="Confirm Password"/>
</div>
<div class="form-group">
<div class="row">

View File

@ -2,4 +2,9 @@ challenge.title=WebGoat Challenge
challenge1.title=Admin lost password
challenge2.title=Get it for free
challenge3.title=Photo comments
challenge4.title=Creating a new account
challenge.solved=Congratulations, you solved the challenge. Here is your flag: {0}
user.exists=User {0} already exists please try to register with a different username.
user.created=User {0} created, please proceed to the login page.
input.invalid=Input for user, email and/or password is empty or too long, please fill in all field and/or limit all fields to 30 characters.