Changes
This commit is contained in:
@@ -55,6 +55,11 @@ export default function SecurityPage() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (newPassword === currentPassword) {
|
||||||
|
setPasswordError("New password must be different from current password");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isPasswordValid(newPassword)) {
|
if (!isPasswordValid(newPassword)) {
|
||||||
setPasswordError("New password does not meet strength requirements");
|
setPasswordError("New password does not meet strength requirements");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user