1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00
Files
pawkey-sk/packages/backend/migration/1763651560421-MaxRegPerIP.js
Leafus 04178a2ae5 feat: [frontend / backend / sdk] a bunch of changes
backend:
- Validate registrationWord on backend
- Add maxRegPerIP rate limit how much accounts can be created per-ip

frontend:
- Add support for bulk approval rejection / acception
- Address unsafe cookies-js defaults
- Address addition of maxRegPerIP

sdk:
- Type definitions
2025-11-20 16:57:33 +01:00

12 lines
384 B
JavaScript

/** @type {import('typeorm').MigrationInterface} */
export class MaxRegPerIP1763651560421 {
name = 'MaxRegPerIP1763651560421'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "maxRegPerIp" integer NOT NULL DEFAULT 2`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "maxRegPerIp"`);
}
}