Skip to content

Commit d82edc9

Browse files
committed
Use input type=password
1 parent 5df8975 commit d82edc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/password_example_web/templates/login/login.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<%= form_for @conn, Routes.login_path(@conn, :login_post), [as: :user], fn f -> %>
44
<label> Name <%= text_input f, :name %> </label>
5-
<label> Password <%= text_input f, :password %> </label>
5+
<label> Password <%= text_input f, :password, type: :password %> </label>
66
<%= submit "Login" %>
77
<% end %>
88

lib/password_example_web/templates/login/register.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<%= form_for @changeset, Routes.login_path(@conn, :register_post), fn f -> %>
44
<label> Name <%= text_input f, :name %> </label> <%= error_tag f, :name %>
5-
<label> Password <%= text_input f, :password %> </label> <%= error_tag f, :password %>
5+
<label> Password <%= text_input f, :password, type: :password %> </label> <%= error_tag f, :password %>
66
<%= submit "Register" %>
77
<% end %>
88

0 commit comments

Comments
 (0)