Fakultas Ilmu Komputer UI

Commit 404a417c authored by alif fadila safriyanto's avatar alif fadila safriyanto
Browse files

1506688765 197

parent a13a6f7e
......@@ -78,7 +78,7 @@ export default class CompanyRegisterModal extends React.Component {
this.passwordConfirmField = e.target;
const validatePassword = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/g;
const validatePassword = /(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,}/g;
if (!validatePassword.test(this.passwordField.value)) {
this.passwordField.setCustomValidity('Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment