mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
docs:
This commit is contained in:
@@ -151,6 +151,9 @@ export class UserService extends BaseService<UserEntity> {
|
|||||||
|
|
||||||
async buildPlainPassword(rawPassword: string) {
|
async buildPlainPassword(rawPassword: string) {
|
||||||
const setting: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
|
const setting: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
|
||||||
|
if (!setting.siteId) {
|
||||||
|
throw new CommonException('站点ID还未初始化');
|
||||||
|
}
|
||||||
const prefixSiteId = setting.siteId.substring(1, 5);
|
const prefixSiteId = setting.siteId.substring(1, 5);
|
||||||
return rawPassword + prefixSiteId;
|
return rawPassword + prefixSiteId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user