mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
feat: cert download
This commit is contained in:
@@ -23,6 +23,11 @@ export class LoginController extends BaseController {
|
||||
user
|
||||
) {
|
||||
const token = await this.loginService.login(user);
|
||||
|
||||
this.ctx.cookies.set('token', token.token, {
|
||||
maxAge: 1000 * token.expire,
|
||||
});
|
||||
|
||||
return this.ok(token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user