2016-07-17 12:48:09 +08:00

8 lines
181 B
JavaScript

'use strict';
module.exports = function* () {
const minute = 60000;
if (this.request.body.remember) this.setCookie('remember', 1, { maxAge: minute });
this.redirect('/');
};