Skip to content
Snippets Groups Projects
Commit a157420f authored by Shashank Kumar's avatar Shashank Kumar
Browse files

#3362062: fix the issue

parent 98000dad
No related branches found
No related tags found
No related merge requests found
......@@ -182,8 +182,10 @@ class UserSettingsForm extends FormBase {
}
elseif ($form_state->getValue('submit') == 'Send SMS') {
$this->sms->twilioUserSendConfirmation($account_data, $form_state->getValue('number'), $form_state->getValue('countrycode'));
$this->messenger->addStatus('Message has been send on your mobile number...');
$message_status = $this->sms->twilioUserSendConfirmation($account_data, $form_state->getValue('number'), $form_state->getValue('countrycode'));
if ($message_status == 'send') {
$this->messenger->addStatus('Message has been send on your mobile number...');
}
}
else {
$data = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment