아이디 생성 가능

This commit is contained in:
2018-01-20 05:35:11 +09:00
parent 9e3182bf2a
commit a39a1e8612
4 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ localhost
25 25
test test
letmein letmein
@localhost test@localhost
*/ */
+8 -2
View File
@@ -9,8 +9,8 @@ class _Mail {
public function __construct($host, $port, $id, $pw, $addr) { public function __construct($host, $port, $id, $pw, $addr) {
$this->objMail = new PHPMailer(); $this->objMail = new PHPMailer();
$this->objMail->IsSMTP(); $this->objMail->IsSMTP();
$this->objMail->SMTPAuth = true; $this->objMail->SMTPAuth = false;
$this->objMail->SMTPSecure = 'ssl'; //$this->objMail->SMTPSecure = 'ssl';//TODO 제대로된 Mailer 옵션 설정
$this->objMail->Host = $host; $this->objMail->Host = $host;
$this->objMail->Port = $port; $this->objMail->Port = $port;
$this->objMail->Username = $id; $this->objMail->Username = $id;
@@ -19,6 +19,12 @@ class _Mail {
$this->objMail->CharSet = 'utf-8'; $this->objMail->CharSet = 'utf-8';
$this->objMail->Encoding = 'base64'; $this->objMail->Encoding = 'base64';
$this->objMail->SetFrom($addr); $this->objMail->SetFrom($addr);
$this->objMail->SMTPOptions = array (
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
)
);
} }
public function Send($to, $subject, $content) { public function Send($to, $subject, $content) {
+2 -1
View File
@@ -12,8 +12,9 @@ function Replace(url) {
} }
function ReplaceFrame(url) { function ReplaceFrame(url) {
//window.top.location.replace(url);
console.log('top',url); console.log('top',url);
window.top.location.replace(url);
} }
function ImportStyle(href) { function ImportStyle(href) {
+4 -4
View File
@@ -32,10 +32,10 @@ if($err == 1) {
$DB->Delete('EMAIL', "EMAIL='{$email}'"); $DB->Delete('EMAIL', "EMAIL='{$email}'");
} }
$DB->InsertArray('EMAIL', array( $DB->InsertArray('EMAIL', array(
EMAIL => $email, 'EMAIL' => $email,
CODE => $code, 'CODE' => $code,
VERIFIED=> 0, 'VERIFIED'=> 0,
REG_DATE=> _Time::DatetimeNow() 'REG_DATE'=> _Time::DatetimeNow()
)); ));
$response['result'] = 'SUCCESS'; $response['result'] = 'SUCCESS';