diff options
| author | mo <mo.khan@gmail.com> | 2017-09-03 15:18:11 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-03 15:18:11 -0600 |
| commit | 8863c9d09c4b2be5516e97406b09fa460386f8fa (patch) | |
| tree | 5e7b6d1ac361f576c12ac59ab05e7ce1a3ec8b81 /app | |
| parent | dceee11f9b6b2a1d8ce151a94743f765d4f72b5a (diff) | |
make password fields required in the change password page.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/my/passwords/index.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/my/passwords/index.html.erb b/app/views/my/passwords/index.html.erb index a6d8c472..95f8ab65 100644 --- a/app/views/my/passwords/index.html.erb +++ b/app/views/my/passwords/index.html.erb @@ -7,15 +7,15 @@ <%= form_for @user, url: my_password_path(@user), html: { method: :patch, class: "form-horizontal" } do |f| %> <div class="form-group"> <%= f.label :old_password, "Old password" %> - <%= f.password_field :old_password, class: 'form-control' %> + <%= f.password_field :old_password, class: 'form-control', required: "required" %> </div> <div class="form-group"> <%= f.label :password, "New password" %> - <%= f.password_field :password, class: 'form-control' %> + <%= f.password_field :password, class: 'form-control', required: "required" %> </div> <div class="form-group"> <%= f.label :password_confirmation, "Confirm new password" %> - <%= f.password_field :password_confirmation, class: 'form-control' %> + <%= f.password_field :password_confirmation, class: 'form-control', required: "required" %> </div> <%= f.submit "Update password", class: "btn btn-primary" %> <% end %> |
