2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use Illuminate\Database\Eloquent\Model;
public function isLoginSuccess($dont_check_email_mobile = false) {
session_status() === PHP_SESSION_ACTIVE ?: session_start();
// ログイン時のメールアドレスとDBのメールアドレスが一致している場合
if (isset($_SESSION[Utils::getShopCode()]['customer']['customer_id'])
&& Utils::sfIsInt($_SESSION[Utils::getShopCode()]['customer']['customer_id'])
$modelCustomer = new DtbCustomer();
$email = $modelCustomer->getById(array($_SESSION[Utils::getShopCode()]['customer']['customer_id']))['email'];
if ($email == $_SESSION[Utils::getShopCode()]['customer']['email']) {