|
@@ -568,7 +568,9 @@ export class RegesterComponent implements OnInit {
|
|
|
//visitor added submited
|
|
|
if(this.regesterForm.get('password').value != this.regesterForm.get('password_confirmation').value){
|
|
|
this.toastr.warning(' من فضلك تأكد أن كلمه المرور نفس تأكيد كلمه المرور !');
|
|
|
- } else if(this.regesterForm.get('phone').value.substring(0,2) != '05') {
|
|
|
+ } else if(this.imageBase64 == '') {
|
|
|
+ this.toastr.warning('قم بإختيار صوره شخصيه !');
|
|
|
+ } else if(this.regesterForm.get('phone').value.substring(0,2) != '05') {
|
|
|
this.toastr.warning('رقم الجوال يجب أن يبدأ ب 05');
|
|
|
} else if(userDataRegester['identity_number'].substring(0,1) != 1 && this.regesterForm.get('identity_type_id').value == 1){
|
|
|
this.toastr.warning('رقم الهويه يجب ان يبدأ ب رقم 1');
|
|
@@ -595,6 +597,8 @@ export class RegesterComponent implements OnInit {
|
|
|
//employee added submited
|
|
|
if(this.regesterForm.get('password').value != this.regesterForm.get('password_confirmation').value){
|
|
|
this.toastr.warning(' من فضلك تأكد أن كلمه المرور نفس تأكيد كلمه المرور !');
|
|
|
+ } else if(this.imageBase64 == '') {
|
|
|
+ this.toastr.warning('قم بإختيار صوره شخصيه !');
|
|
|
} else if(userDataRegester['identity_number'].substring(0,1) != 1 && this.regesterForm.get('identity_type_id').value == 1){
|
|
|
this.toastr.warning('رقم الهويه يجب ان يبدأ ب رقم 1');
|
|
|
} else if(userDataRegester['identity_number'].substring(0,1) != 2 && this.regesterForm.get('identity_type_id').value == 3){
|