Implement polling and reconfirmation

This will poll the server every certain interval (15s) for the email address
and stop polling if the email is Authorized or the modal is closed or after a certain period of time (2 hours)

MAILPOET-4300
This commit is contained in:
Oluwaseun Olorunsola
2022-07-04 17:38:15 +01:00
committed by Veljko V
parent 183f64834c
commit ee70d2dd1e
3 changed files with 79 additions and 12 deletions

View File

@ -198,7 +198,7 @@ class Settings extends APIEndpoint {
}
/**
* Makes POST request to Bridge endpoint to add email to user email authorization list
* Create POST request to Bridge endpoint to add email to user email authorization list
*/
public function authorizeSenderEmailAddress($data = []) {
$emailAddress = $data['email'] ?? null;