From 81e415a89b17ddf9b57347de799022808507f41b Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Fri, 26 Aug 2016 19:21:48 -0400 Subject: added validations to the forget password function --- views/password_edit.hbs | 20 ++++++++++++++++---- views/reset_password.hbs | 18 +++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) (limited to 'views') diff --git a/views/password_edit.hbs b/views/password_edit.hbs index 903388a..f5e87ab 100644 --- a/views/password_edit.hbs +++ b/views/password_edit.hbs @@ -5,12 +5,24 @@ {{# if success }}
-

{{success}}

+

{{success}}

{{ else }} {{# if errors }} + {{# if errors.length}} +
+ +
+ {{/if}} + + {{/if}} + {{# if error}}
-

{{errors}}

+

{{error}}

{{/if}} {{/if}} @@ -27,13 +39,13 @@
- +
- +
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 }}
-

{{success}}

+

{{success}}

{{ else }} {{# if errors }} + {{# if errors.length}} +
+ +
+ {{/if}} + + {{/if}} + {{# if error}}
-

{{errors}}

+

{{error}}

{{/if}} {{/if}} @@ -27,7 +39,7 @@
- + -- cgit v1.2.3