Index: /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php	(revision 20613)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php	(working copy)
@@ -253,7 +253,7 @@
 					}
 					$error_msg = $this->addSendOTPToConfig($selectedAccounts);
 					if (!empty($error_msg)) {
-						$this->jsOnLoadEnd .= 'g_errStr += "' . $error_msg . '";';
+						$this->jsOnLoadEnd .= 'showSPMessage("warning", "' . $error_msg . '");';
 					}
 					break;
 				default:
Index: /branches/rel_ag_9_4_5/webui/proxy/new/send_otp_qrcode.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/send_otp_qrcode.php	(revision 20613)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/send_otp_qrcode.php	(working copy)
@@ -109,8 +109,11 @@
     $cmd .= $f_eop;
     $cmdArg = escapeshellarg($cmd);
     $mail_log = FilePath::MAIL_LOG;
-    $fullCommand = "/ca/bin/backend -s $shellId -u $username -c $cmdArg > $mail_log 2>&1 &";
+    $fullCommand = "/ca/bin/backend -s $shellId -u $username -c $cmdArg > $mail_log 2>&1";
     exec($fullCommand);
+
+    $result = @file_get_contents($mail_log);
+    file_put_contents($mail_log, $result, FILE_APPEND);
 }
 
 function addLog($type, $content, $operator = '', $vsite = '') {
