mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
demo: confirm password validation (#1453)
* fix: Next JS demo confirm password validation * removing unnecessary imports
This commit is contained in:
committed by
Bereket Engida
parent
7d0854b219
commit
adf8d6dcda
@@ -150,6 +150,10 @@ export function SignUp() {
|
|||||||
className="w-full"
|
className="w-full"
|
||||||
disabled={loading}
|
disabled={loading}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
|
if (password !== passwordConfirmation){
|
||||||
|
toast.error("Please ensure your password and confirm password match.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
await signUp.email({
|
await signUp.email({
|
||||||
email,
|
email,
|
||||||
password,
|
password,
|
||||||
|
|||||||
Reference in New Issue
Block a user