This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.env.example b/.env.example | |
index 9900c9fc..6f93b54d 100644 | |
--- a/.env.example | |
+++ b/.env.example | |
@@ -25,6 +25,11 @@ QUEUE_CONNECTION=sync | |
SESSION_DRIVER=file | |
SESSION_LIFETIME=120 | |
+SAVED_RECEIVER_SYNC_ENABLED=false | |
+SAVED_RECEIVER_SYNC_QUEUE= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from "@angular/core"; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class Base64Service { | |
constructor() { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {AbstractControl, ValidatorFn} from '@angular/forms'; | |
import {CountryCode, isValidNumber} from 'libphonenumber-js'; | |
export function phoneNumberValidator(countryCode: CountryCode = 'US'): ValidatorFn { | |
return (control: AbstractControl): { [key: string]: boolean } | null => { | |
if (control.value) { | |
return isValidNumber(control.value, countryCode) ? null : {notValid: true}; | |
} else { | |
// do not validate if field is empty since it may not be a required field | |
return null; |