mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +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"
|
||||
disabled={loading}
|
||||
onClick={async () => {
|
||||
if (password !== passwordConfirmation){
|
||||
toast.error("Please ensure your password and confirm password match.");
|
||||
return;
|
||||
}
|
||||
await signUp.email({
|
||||
email,
|
||||
password,
|
||||
|
||||
Reference in New Issue
Block a user