cognito pre-signup

0

Hello

I try to put a condition to only allow email addresses from my own domain to sign up for the cognito user pool. I tried the pre-signup trigger and a lambda function to check the information passed;however I was able to automatically confirm users with email addresses from my own domain but other domain email addresses were still accepted as unconfirmed.
Is there a way to stop the processes if the email provided is from a different domain?

thanks
RT

rtt
已提問 4 年前檢視次數 377 次
1 個回答
0

I found out what i needed.
On the else section of my code when the domain does not match, I needed to return the callback with the error.

rtt
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南