mirror of
https://github.com/dyzulk/dyzulk-apps.git
synced 2026-01-26 21:32:04 +07:00
Update & Security
This commit is contained in:
29
application/controllers/Account.php
Normal file
29
application/controllers/Account.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Account extends CI_Controller {
|
||||
|
||||
|
||||
public function index()
|
||||
|
||||
{
|
||||
$data['title'] = 'My Account';
|
||||
$data['user'] = $this->db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array();
|
||||
|
||||
$this->load->view('partials/01header', $data);
|
||||
$this->load->view('account', $data);
|
||||
}
|
||||
|
||||
|
||||
public function security()
|
||||
|
||||
{
|
||||
$data['title'] = 'Security';
|
||||
$data['user'] = $this->db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array();
|
||||
|
||||
$this->load->view('partials/01header', $data);
|
||||
$this->load->view('security', $data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -175,12 +175,10 @@ class Auth extends CI_Controller {
|
||||
|
||||
$config = [
|
||||
'protocol' => 'smtp',
|
||||
'smtp_host' => 'ssl://smtp.googlemail.com',
|
||||
// 'smtp_user' => 'aku@dyzulk.com',
|
||||
// 'smtp_pass' => '@Synthesis1996',
|
||||
'smtp_user' => 'dyzulk04@gmail.com',
|
||||
'smtp_pass' => 'qhfiugstswaehokp',
|
||||
'smtp_port' => 465,
|
||||
'smtp_host' => 'mail.dyzulk.com',
|
||||
'smtp_user' => 'no-reply@app.dyzulk.com',
|
||||
'smtp_pass' => '@Synthesis1996',
|
||||
'smtp_port' => 587,
|
||||
'smtp_timeout' => '7',
|
||||
'mailtype' => 'html',
|
||||
'charset' => 'utf-8',
|
||||
@@ -190,7 +188,7 @@ class Auth extends CI_Controller {
|
||||
$this->load->library('email', $config);
|
||||
$this->email->initialize($config);
|
||||
|
||||
$this->email->from('dyzulksolution@dyzulk.com', 'CI App');
|
||||
$this->email->from($config['smtp_user'], 'Dyz Panel');
|
||||
|
||||
if ($type == 'verify'){
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class Transaksi extends CI_Controller {
|
||||
public function index()
|
||||
|
||||
{
|
||||
$data['title'] = 'Transaksi';
|
||||
$data['title'] = 'Transaction';
|
||||
$data['user'] = $this->db->get_where('users_account', ['email' => $this->session->userdata('email')])->row_array();
|
||||
$data['total'] = $this->totalTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user