Skip to content
Myr

Auth example using route middleware

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 72765ba · Browse files · 2 files+16 added−1 removed
This commit

State

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

Diff stats

2 files+16 added−1 removed

  • other:+16 added−1 removed

2 files+16 added−1 removed

modified:examples/auth/views/login.ejs+1 added
1<h1>Login</h1>2<%- message %>3Try accessing <a href="/restricted">/restricted</a>.4<form method="post" action="/login">5 <p>6 <label>Username:</label>7 <input type="text" name="username">
9 unmodified lines
modified:examples/auth/app.js+15 added-1 removed