refactor(frontend): rename booklore-ui to frontend
- Frontend path: - rename the tracked Angular app tree from `booklore-ui/` to `frontend/` - preserve file contents during the move so this commit stays focused on the path change itself - Frontend docs: - update the moved frontend README and contribution guide where they refer to the renamed folder - keep those edits limited to path references introduced by the directory rename
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import {AbstractControl, ValidationErrors, ValidatorFn} from '@angular/forms';
|
||||
|
||||
export const passwordMatchValidator = (
|
||||
passwordControlName: string,
|
||||
confirmPasswordControlName: string
|
||||
): ValidatorFn => (control: AbstractControl): ValidationErrors | null => {
|
||||
const password = control.get(passwordControlName)?.value;
|
||||
const confirmPassword = control.get(confirmPasswordControlName)?.value;
|
||||
|
||||
if (!password || !confirmPassword) return null;
|
||||
|
||||
return password === confirmPassword ? null : {passwordMismatch: true};
|
||||
};
|
||||
Reference in New Issue
Block a user