diff options
| author | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-26 23:21:48 +0000 |
|---|---|---|
| committer | nanalelfe <nargiza.nosirova@mail.utoronto.ca> | 2016-08-26 23:21:48 +0000 |
| commit | 81e415a89b17ddf9b57347de799022808507f41b (patch) | |
| tree | b66dd48d6c1519dd964043aa917f0473f99768bf /views/reset_password.hbs | |
| parent | 0792495a750d65e2fe73a7b39f54955ec48b4b08 (diff) | |
added validations to the forget password function
Diffstat (limited to 'views/reset_password.hbs')
| -rw-r--r-- | views/reset_password.hbs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/views/reset_password.hbs b/views/reset_password.hbs index 5526123..9403b04 100644 --- a/views/reset_password.hbs +++ b/views/reset_password.hbs @@ -5,12 +5,24 @@ {{# if success }} <section class="alert alert-success"> <!-- Change those to banners later --> - <h4>{{success}}</h4> + <p>{{success}}</p> </section> {{ else }} {{# if errors }} + {{# if errors.length}} + <section class="alert alert-danger"> + <ul> + {{# each errors }} + <li>{{ this.msg }}</li> + {{/each}} + </ul> + </section> + {{/if}} + + {{/if}} + {{# if error}} <section class="alert alert-danger"> - <h4>{{errors}}</h4> + <p>{{error}}</p> </section> {{/if}} {{/if}} @@ -27,7 +39,7 @@ <div class="input-group-addon addon-email-reset"> <i class="fa fa-at" aria-hidden="true"></i> </div> - <input type="text" class="form-control input-email-reset" placeholder="email" name="email" required> + <input type="text" class="form-control input-email-reset" placeholder="email" name="email"> </div> </div> <input type="hidden" name="_csrf" value="{{ csrfToken }}"> |
