diff options
| author | hukl <contact@smyck.org> | 2009-11-07 21:11:29 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-11-07 21:11:29 +0100 |
| commit | 41fbeb4a740bfe9e35130bc1c9f4d7e4198fe6cf (patch) | |
| tree | 5b93d9443663b746f4ec1d49b08f0aa8679e69cf /app | |
| parent | 69ba58f34dae66d8bb2ccbb7e64f5537a532f06c (diff) | |
Using password field for user passwords. Closes #43
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/users/edit.html.erb | 4 | ||||
| -rw-r--r-- | app/views/users/new.html.erb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 63dfd9c..226e821 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb | |||
| @@ -14,11 +14,11 @@ | |||
| 14 | </tr> | 14 | </tr> |
| 15 | <tr> | 15 | <tr> |
| 16 | <td class="description">Password</td> | 16 | <td class="description">Password</td> |
| 17 | <td><%= f.text_field :password %></td> | 17 | <td><%= f.password_field :password %></td> |
| 18 | </tr> | 18 | </tr> |
| 19 | <tr> | 19 | <tr> |
| 20 | <td class="description">Confirm</td> | 20 | <td class="description">Confirm</td> |
| 21 | <td><%= f.text_field :password_confirmation %></td> | 21 | <td><%= f.password_field :password_confirmation %></td> |
| 22 | </tr> | 22 | </tr> |
| 23 | <% if current_user.admin? %> | 23 | <% if current_user.admin? %> |
| 24 | <tr> | 24 | <tr> |
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 8bd21d6..6990c27 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb | |||
| @@ -14,11 +14,11 @@ | |||
| 14 | </tr> | 14 | </tr> |
| 15 | <tr> | 15 | <tr> |
| 16 | <td class="description">Password</td> | 16 | <td class="description">Password</td> |
| 17 | <td><%= f.text_field :password %></td> | 17 | <td><%= f.password_field :password %></td> |
| 18 | </tr> | 18 | </tr> |
| 19 | <tr> | 19 | <tr> |
| 20 | <td class="description">Confirm</td> | 20 | <td class="description">Confirm</td> |
| 21 | <td><%= f.text_field :password_confirmation %></td> | 21 | <td><%= f.password_field :password_confirmation %></td> |
| 22 | </tr> | 22 | </tr> |
| 23 | <tr> | 23 | <tr> |
| 24 | <td class="description">Admin?</td> | 24 | <td class="description">Admin?</td> |
