papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Fix Authentication Form: Validate Email Field and Disable Buttons During Requests

Open HarshTiwari-err opened this issue 1 year ago • 3 comments

Email Validation:

Implemented validation to ensure that the email field is not empty before attempting to trigger the sign-in process. If the email field is empty, an error toast is displayed to prompt the user to enter a valid email address.

Loading State Management:

Introduced a clickedMethod state to track which authentication method is currently in progress. Disables the email input and all authentication buttons when a request is ongoing to prevent multiple submissions.

HarshTiwari-err avatar Oct 10 '24 18:10 HarshTiwari-err

@HarshTiwari-err is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 10 '24 18:10 vercel[bot]


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Oct 10 '24 18:10 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

HarshTiwari-err avatar Oct 10 '24 18:10 HarshTiwari-err

@HarshTiwari-err unfortunately mohdjami already added his PR. I cannot award you

mfts avatar Oct 11 '24 14:10 mfts