Skip to content

Commit c5db67c

Browse files
committed
Use EmailAddress type for verification form
1 parent 569c3a7 commit c5db67c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/members/send-email-verification-form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {flow, pipe} from 'fp-ts/lib/function';
22
import * as E from 'fp-ts/Either';
33
import {html, safe, sanitizeString, toLoggedInContent} from '../../types/html';
4-
import {User} from '../../types';
4+
import {EmailAddressCodec, User} from '../../types';
55
import {Form} from '../../types/form';
66
import * as t from 'io-ts';
77
import * as tt from 'io-ts-types';
@@ -40,7 +40,7 @@ const renderForm = (viewModel: ViewModel) =>
4040

4141
const paramsCodec = t.strict({
4242
member: tt.NumberFromString,
43-
email: t.string,
43+
email: EmailAddressCodec,
4444
});
4545

4646
const constructForm: Form<ViewModel>['constructForm'] =

0 commit comments

Comments
 (0)