mirror of
https://github.com/certd/certd.git
synced 2026-07-12 00:07:35 +08:00
perf: 支持重置管理员密码,忘记密码的补救方案
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
import { Config, Provide } from '@midwayjs/decorator';
|
||||
import {
|
||||
IMidwayKoaContext,
|
||||
NextFunction,
|
||||
IWebMiddleware,
|
||||
} from '@midwayjs/koa';
|
||||
import { IMidwayKoaContext, NextFunction, IWebMiddleware } from '@midwayjs/koa';
|
||||
import { PreviewException } from '../basic/exception/preview-exception';
|
||||
|
||||
/**
|
||||
@@ -20,6 +16,7 @@ export class PreviewMiddleware implements IWebMiddleware {
|
||||
await next();
|
||||
return;
|
||||
}
|
||||
// eslint-disable-next-line prefer-const
|
||||
let { url, request } = ctx;
|
||||
const body: any = request.body;
|
||||
let id = body.id || request.query.id;
|
||||
|
||||
Reference in New Issue
Block a user