()
| 17 | ) {} |
| 18 | |
| 19 | onModuleInit(): void { |
| 20 | const email = this.cfg.bootstrapEmail?.trim().toLowerCase(); |
| 21 | const password = this.cfg.bootstrapPassword; |
| 22 | if (!email || !password || password.length < 8) return; |
| 23 | if (this.store.users.findByEmail(email)) return; |
| 24 | this.store.users.create({ |
| 25 | id: "usr_" + randomUUID(), |
| 26 | email, |
| 27 | passwordHash: hashPassword(password), |
| 28 | createdAt: Date.now(), |
| 29 | }); |
| 30 | } |
| 31 | } |
nothing calls this directly
no test coverage detected