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 | |
| parent | 69ba58f34dae66d8bb2ccbb7e64f5537a532f06c (diff) | |
Using password field for user passwords. Closes #43
| -rw-r--r-- | app/views/users/edit.html.erb | 4 | ||||
| -rw-r--r-- | app/views/users/new.html.erb | 4 | ||||
| -rw-r--r-- | public/stylesheets/admin.css | 2 |
3 files changed, 5 insertions, 5 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> |
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css index 2641b98..f95fa18 100644 --- a/public/stylesheets/admin.css +++ b/public/stylesheets/admin.css | |||
| @@ -284,7 +284,7 @@ textarea#page_abstract { | |||
| 284 | margin-left: -118px; | 284 | margin-left: -118px; |
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | #new_node input[type=text] { | 287 | #new_node input[type=text], #new_node input[type=password] { |
| 288 | width: 350px; | 288 | width: 350px; |
| 289 | } | 289 | } |
| 290 | 290 | ||
