feat(registration): no invite code, request text
Build, Test & Push Frontend / quality-check (push) Successful in 22s
Build, Test & Push Frontend / docker (push) Successful in 22s

This commit is contained in:
lobo committed 2026-10-01 09:18:47 +02:00
1 parent f4e69e1a94
commit 79b086c525
7 files changed
+55 -42

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ describe('Steam ID', () => {
it('is no form field any more: it comes only from "Sign in through Steam"', () => {
expect(settingsSchema.parse({...settings(), steamId: '76561198005679788'})).not.toHaveProperty('steamId');
expect(registrationSchema.parse({
email: 'a@b.de', password: 'password1', passwordConfirmation: 'password1', inviteCode: 'code',
email: 'a@b.de', password: 'password1', passwordConfirmation: 'password1',
steamId: '76561198005679788',
})).not.toHaveProperty('steamId');
});
@@ -34,7 +34,7 @@ describe('registration password', () => {
it('rejects a password over 72 UTF-8 bytes, as Auth does', () => {
const password = 'é'.repeat(37);
expect(registrationSchema.safeParse({
email: 'a@b.de', password, passwordConfirmation: password, inviteCode: 'code',
email: 'a@b.de', password, passwordConfirmation: password,
}).success).toBe(false);
});
});