Skip to content

Commit 1d37dac

Browse files
committed
Merge pull request #404 from jain208/master
Fixed client-side validation in login.html
2 parents 4b65019 + 7806509 commit 1d37dac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/templates/client/app/account(auth)/login/login(html).html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,23 @@ <h1>Login</h1>
1313
<div class="form-group">
1414
<label>Email</label>
1515

16-
<input type="text" name="email" class="form-control" ng-model="user.email">
16+
<input type="email" name="email" class="form-control" ng-model="user.email" required>
1717
</div>
1818

1919
<div class="form-group">
2020
<label>Password</label>
2121

22-
<input type="password" name="password" class="form-control" ng-model="user.password">
22+
<input type="password" name="password" class="form-control" ng-model="user.password" required>
2323
</div>
2424

2525
<div class="form-group has-error">
2626
<p class="help-block" ng-show="form.email.$error.required && form.password.$error.required && submitted">
2727
Please enter your email and password.
2828
</p>
29+
<p class="help-block" ng-show="form.email.$error.email && submitted">
30+
Please enter a valid email.
31+
</p>
32+
2933
<p class="help-block">{{ errors.other }}</p>
3034
</div>
3135

0 commit comments

Comments
 (0)