Skip to content
Myr

Added authentication example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

very raw and minimal but gives people and idea

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 334e6cc · Browse files · 3 files+91 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+91 added−3 removed

  • other:+91 added−3 removed

3 files+91 added−3 removed

modified:examples/auth/views/layout.ejs+6 added
5 unmodified lines
6 body {7 padding: 50px;8 font: 13px Helvetica, Arial, sans-serif;9 }10 .error {11 color: red12 }13 .success {14 color: green;15 }16 </style>17 </head>18 <body>19 <%- body %>
2 unmodified lines
modified:examples/auth/views/login.ejs+3 added-2 removed
1<h1>Login</h1>2<%- message %>3<form method="post" action="/login">4 <p>5 <label>Username:</label>5 <input type="text" name="user[name]">6 <input type="text" name="username">7 </p>8 <p>9 <label>Password:</label>9 <input type="text" name="user[pass]">10 <input type="text" name="password">11 </p>12 <p>13 <input type="submit" value="Login">14 </p>
1 unmodified line
modified:examples/auth/app.js+82 added-1 removed