diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:43:25 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-03 19:43:25 -0500 |
commit | 254f8b72b2d92787d2e1f9e7589935b2c0dae66d (patch) | |
tree | a9f6fcfb85e647dc7534e8a44fd9bb617cbcfa32 /app/views/users | |
parent | 5522a6702e4586d219c8b332f1e311ca94746158 (diff) |
Changed password input to password type so that passwords are hidden as *** when typed, also why are we using an html form?
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/new.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 2a745cc..aa71f00 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -16,11 +16,11 @@ </p> <p> <%= f.label :password %><br> - <%= f.text_field :password %> + <%= f.password_field :password %> </p> <p> <%= f.label :password_confirm %><br> - <%= f.text_field :password_confirmation %> + <%= f.password_field :password_confirmation %> </p> <p> <%= f.submit %> @@ -45,11 +45,11 @@ </p> <p> <label for="user_password">Password</label><br> - <input id="user_password" name="user[password]" type="text" /> + <input id="user_password" name="user[password]" type="password" /> </p> <p> <label for="user_password_confirm">Password confirm</label><br> - <input id="user_password_confirmation" name="user[password_confirmation]" type="text" /> + <input id="user_password_confirmation" name="user[password_confirmation]" type="password" /> </p> <p> <input name="commit" type="submit" value="Save User" /> |