Skip to content
Myr

Started auth example

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 8b5773c · Browse files · 3 files+51 added−0 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+51 added−0 removed

  • other:+51 added−0 removed

3 files+51 added−0 removed

added:examples/auth/views/layout.ejs+15 added
1<!DOCTYPE html>2<html>3 <head>4 <title>Authentication Example</title>5 <style>6 body {7 padding: 50px;8 font: 13px Helvetica, Arial, sans-serif;9 }10 </style>11 </head>12 <body>13 <%- body %>14 </body>15</html>
added:examples/auth/views/login.ejs+14 added
1<h1>Login</h1>2<form method="post" action="/login">3 <p>4 <label>Username:</label>5 <input type="text" name="user[name]">6 </p>7 <p>8 <label>Password:</label>9 <input type="text" name="user[pass]">10 </p>11 <p>12 <input type="submit" value="Login">13 </p>14</form>
added:examples/auth/app.js+22 added