Skip to content

Commit

Permalink
Bug with sugoï EmailVerification regex
Browse files Browse the repository at this point in the history
@camap.localdomain -> @camap.tld
  • Loading branch information
Mandrak-Kimigo committed Jun 13, 2024
1 parent 4152fee commit 5a3feb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/api-core/src/dev/dataset-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,12 +750,12 @@ const genBaseConfig = async (app: INestApplication) => {

const genAdmin = async (app: INestApplication) => {
const userRepo = app.get<Repository<UserEntity>>(getRepositoryToken(UserEntity));
let admin = await userRepo.findOne({ email: 'admin@camap.localdomain' });
let admin = await userRepo.findOne({ email: 'admin@camap.tld' });
if (!admin) {
admin = await genUser(app, {
firstName: 'Harry',
lastName: 'Covert',
email: 'admin@camap.localdomain',
email: 'admin@camap.tld',
phone: '0607080905',
rights: [RightSite.SuperAdmin],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const UserGroups: React.VFC<{}> = () => (
{
firstName: 'Jean-Michel',
lastName: 'LeDev',
email: 'admin@camap.localdomain',
email: 'admin@camap.tld',
} as User
}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/front-core/stories/Debug.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const InnerLogin = () => {
if (parts && parts.length === 2) sid = parts.pop()!.split(';').shift()!;
const { data } = await login({
variables: {
input: { email: 'admin@camap.localdomain', password: 'admin', sid },
input: { email: 'admin@camap.tld', password: 'admin', sid },
},
});
if (data && data.login) {
Expand Down

0 comments on commit 5a3feb8

Please sign in to comment.