Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RegEx Patterns to Registration Input #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OpenDF-web/src/main/webapp/register.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
<input type="text" id="fname" name="fname" class="form-control" placeholder="First Name">
<input type="text" id="fname" name="fname" class="form-control" placeholder="First Name" pattern="[A-Za-z]{1,15}" title="First Name should only contain letters. e.g. John">
</div>
</div>
</div>
Expand All @@ -59,7 +59,7 @@
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
<input type="text" id="lname" class="form-control" name="lname" placeholder="Last Name">
<input type="text" id="lname" class="form-control" name="lname" placeholder="Last Name" pattern="[A-Za-z]{1,15}" title="Last Name should only contain letters. e.g. Doe">
</div>
</div>
</div>
Expand All @@ -68,7 +68,7 @@
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-envelope"></i></span>
<input type="text" class="form-control" id="email" name="email" placeholder="Email">
<input type="email" class="form-control" id="email" name="email" placeholder="Email">
</div>
</div>
</div>
Expand Down