@@ -45,18 +45,18 @@ discard block |
||
45 | 45 | } else { |
46 | 46 | $mLogin = $this->getLogin(); |
47 | 47 | if (isset($mLogin['status']) && $mLogin['status'] === 'success') { |
48 | - $this->P->oPayload->cl_html = $textcats->T('login_success') . '<br>'; |
|
48 | + $this->P->oPayload->cl_html = $textcats->T('login_success').'<br>'; |
|
49 | 49 | \HaaseIT\HCSF\Helper::redirectToPage('/_misc/userhome.html?login=true'); |
50 | 50 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'tosnotaccepted') { |
51 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted') . '<br>'; |
|
51 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted').'<br>'; |
|
52 | 52 | $this->P->cb_customcontenttemplate = 'customer/login'; |
53 | 53 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') { |
54 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified') . '<br><br>'; |
|
54 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified').'<br><br>'; |
|
55 | 55 | $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
56 | - . $mLogin['data']['cust_email'] . '">' . $textcats->T('login_fail_emailnotverifiedresend') . '</a>'; |
|
56 | + . $mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>'; |
|
57 | 57 | $this->P->cb_customcontenttemplate = 'customer/login'; |
58 | 58 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'accountinactive') { |
59 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive') . '<br>'; |
|
59 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>'; |
|
60 | 60 | $this->P->cb_customcontenttemplate = 'customer/login'; |
61 | 61 | } else { |
62 | 62 | $this->P->oPayload->cl_html = $textcats->T('login_fail'); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $hResult->execute(); |
111 | 111 | |
112 | 112 | $iRows = $hResult->rowCount(); |
113 | - if($iRows == 1) { |
|
113 | + if ($iRows == 1) { |
|
114 | 114 | $aRow = $hResult->fetch(); |
115 | 115 | |
116 | 116 | if (password_verify(filter_input(INPUT_POST, 'password'), $aRow['cust_password'])) { |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | } elseif ($aRow['cust_tosaccepted'] === 'n') { |
121 | 121 | return ['status' => 'tosnotaccepted']; |
122 | 122 | } elseif ($aRow['cust_emailverified'] === 'n') { |
123 | - return ['status' => 'emailnotverified', 'data' => $aRow,]; |
|
123 | + return ['status' => 'emailnotverified', 'data' => $aRow, ]; |
|
124 | 124 | } elseif ($aRow['cust_active'] === 'n') { |
125 | - return ['status' => 'accountinactive',]; |
|
125 | + return ['status' => 'accountinactive', ]; |
|
126 | 126 | } |
127 | 127 | } |
128 | 128 | } |