BeeMoe
04/29/2022, 3:42 AMBeeMoe
04/29/2022, 3:43 AMrp
04/29/2022, 3:43 AMBeeMoe
04/29/2022, 3:43 AMBeeMoe
04/29/2022, 3:44 AMbeagle
04/29/2022, 8:43 AMPasswordless.init({
override: {
apis: (originalImplementation) => {
return {
...originalImplementation,
createCodePOST: async function (input) {
const existingUser = await Passwordless.getUserByEmail({
email: (input as { email: string }).email,
});
if (!!existingUser) {
throw new ForbiddenException(
'Creating a new user is not allowed'
);
}
return await originalImplementation.createCodePOST(input);
},
};
},
},
...
Now this works fine, but in the frontend I don't see the error message Creating a new user is not allowed
but Something went wrong. Please try again
. Now 2 questions: 1. is this the right way to deactivate the registration of new users in the passwordless authentication? 2. how can I override the default error message in the FE? Thanks a lot πKitsuneKenshi
04/29/2022, 4:39 PMKitsuneKenshi
04/29/2022, 8:03 PMan0th3rhuman
04/30/2022, 2:45 AMnkshah2
04/30/2022, 3:48 AMBeeMoe
05/01/2022, 7:53 AMrp
05/01/2022, 8:07 AMkΓ©vin millot
05/02/2022, 9:51 AMporcellus
05/02/2022, 10:07 AMfunk101
05/02/2022, 7:08 PMfunk101
05/02/2022, 7:26 PMRzKf
05/02/2022, 7:31 PMporcellus
05/02/2022, 8:53 PMporcellus
05/02/2022, 8:56 PMnazzrrg
05/02/2022, 9:55 PMaleksa97
05/02/2022, 10:21 PMporcellus
05/02/2022, 10:24 PMnazzrrg
05/02/2022, 10:25 PMMr Chill
05/03/2022, 7:16 AMnkshah2
05/03/2022, 8:22 AMBeeMoe
05/04/2022, 4:11 AMrp
05/04/2022, 5:55 AMbeagle
05/04/2022, 10:52 AMdiego.s
05/04/2022, 8:06 PMrp
05/05/2022, 3:54 AM