Skip to content

Commit be7f1c7

Browse files
committed
Add warning message on login/register pages
1 parent d82edc9 commit be7f1c7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<h1>Log In</h1>
22

3+
<p>WARNING: This is a insecure demo. Do not enter any password that you actually use.</p>
4+
35
<%= form_for @conn, Routes.login_path(@conn, :login_post), [as: :user], fn f -> %>
46
<label> Name <%= text_input f, :name %> </label>
57
<label> Password <%= text_input f, :password, type: :password %> </label>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<h1>Register</h1>
22

3+
<p>WARNING: This is a insecure demo. Do not enter any password that you actually use.</p>
4+
35
<%= form_for @changeset, Routes.login_path(@conn, :register_post), fn f -> %>
46
<label> Name <%= text_input f, :name %> </label> <%= error_tag f, :name %>
57
<label> Password <%= text_input f, :password, type: :password %> </label> <%= error_tag f, :password %>

0 commit comments

Comments
 (0)