아이디 생성 가능

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
test
letmein
@localhost
test@localhost
*/
+8 -2
View File
@@ -9,8 +9,8 @@ class _Mail {
public function __construct($host, $port, $id, $pw, $addr) {
$this->objMail = new PHPMailer();
$this->objMail->IsSMTP();
$this->objMail->SMTPAuth = true;
$this->objMail->SMTPSecure = 'ssl';
$this->objMail->SMTPAuth = false;
//$this->objMail->SMTPSecure = 'ssl';//TODO 제대로된 Mailer 옵션 설정
$this->objMail->Host = $host;
$this->objMail->Port = $port;
$this->objMail->Username = $id;
@@ -19,6 +19,12 @@ class _Mail {
$this->objMail->CharSet = 'utf-8';
$this->objMail->Encoding = 'base64';
$this->objMail->SetFrom($addr);
$this->objMail->SMTPOptions = array (
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
)
);
}
public function Send($to, $subject, $content) {
+2 -1
View File
@@ -12,8 +12,9 @@ function Replace(url) {
}
function ReplaceFrame(url) {
//window.top.location.replace(url);
console.log('top',url);
window.top.location.replace(url);
}
function ImportStyle(href) {
+4 -4
View File
@@ -32,10 +32,10 @@ if($err == 1) {
$DB->Delete('EMAIL', "EMAIL='{$email}'");
}
$DB->InsertArray('EMAIL', array(
EMAIL => $email,
CODE => $code,
VERIFIED=> 0,
REG_DATE=> _Time::DatetimeNow()
'EMAIL' => $email,
'CODE' => $code,
'VERIFIED'=> 0,
'REG_DATE'=> _Time::DatetimeNow()
));
$response['result'] = 'SUCCESS';