Skip to content

Commit

Permalink
Fix a few typos in growing guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 8, 2022
1 parent f0f0dec commit fae0e2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/Growing.md
Expand Up @@ -545,7 +545,7 @@ app.start();
const indexTemplate = `
% const params = await ctx.params();
<form method="post">
% if (params.user !== null) {
% if (params.get('user') !== null) {
<b>Wrong name or password, please try again.</b><br>
% }
User:<br>
Expand All @@ -562,7 +562,8 @@ const protectedTemplate = `
% if (flash.message != null) {
<b><%= flash.message %></b><br>
% }
Welcome <%= ctx.stash.session.user %>.<br>
% const session = await ctx.session();
Welcome <%= session.user %>.<br>
%= ctx.linkTo('logout', {}, 'Logout')
`;

Expand Down

0 comments on commit fae0e2e

Please sign in to comment.