Skip to content

Commit 10874fb

Browse files
committed
fix model
1 parent 079bd55 commit 10874fb

File tree

1 file changed

+5
-3
lines changed
  • samples/node/web/koa/view-koa/controllers

1 file changed

+5
-3
lines changed

samples/node/web/koa/view-koa/controllers/signin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ module.exports = {
88
if (email === 'admin@example.com' && password === '123456') {
99
console.log('signin ok!');
1010
ctx.render('signin-ok.html', {
11-
name: 'Mr Node',
12-
last: new Date(),
11+
title: 'Sign In OK',
12+
name: 'Mr Node'
1313
});
1414
} else {
1515
console.log('signin failed!');
16-
ctx.render('signin-failed.html');
16+
ctx.render('signin-failed.html', {
17+
title: 'Sign In Failed'
18+
});
1719
}
1820
}
1921
};

0 commit comments

Comments
 (0)