mirror of
https://github.com/Nezumi-2711/foodify-frontend.git
synced 2026-09-22 13:38:44 +00:00
update validation in signup component
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
</div>
|
||||
<div class="col-xl-8 col-md-7">
|
||||
<input style="font-family: Metrophobic;" formControlName="identifiedCode" class="form-control"
|
||||
type="number" placeholder="CMND/CCCD" />
|
||||
type="tel" placeholder="CMND/CCCD" />
|
||||
<div
|
||||
*ngIf="userIdentifiedCode?.invalid && (userIdentifiedCode?.dirty || userIdentifiedCode?.touched)"
|
||||
class="alert alert-danger mt-1">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export class Validation {
|
||||
static Regex = {
|
||||
Phone: new RegExp(/^(((\+|)84)|0)([1-9]{1})([0-9]{8})\b/),
|
||||
IdentifiedCode: new RegExp(/^(\d{9}|\d{12})$/),
|
||||
IdentifiedCode: new RegExp(/^0\d{8}$|^0\d{11}$|^\d{9}$|^\d{12}$/),
|
||||
Password: new RegExp(/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*#?&^_-]).{8,}/),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user