|
@@ 49-52 (lines=4) @@
|
| 46 |
|
if (isset($mLogin['status']) && $mLogin['status'] === 'success') { |
| 47 |
|
$this->P->oPayload->cl_html = $textcats->T('login_success').'<br>'; |
| 48 |
|
$this->helper->redirectToPage('/_misc/userhome.html?login=true'); |
| 49 |
|
} elseif (isset($mLogin['status']) && $mLogin['status'] === 'tosnotaccepted') { |
| 50 |
|
$this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted').'<br>'; |
| 51 |
|
$this->P->cb_customcontenttemplate = 'customer/login'; |
| 52 |
|
} elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') { |
| 53 |
|
$this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified').'<br><br>'; |
| 54 |
|
$this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
| 55 |
|
.$mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>'; |
|
@@ 57-60 (lines=4) @@
|
| 54 |
|
$this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
| 55 |
|
.$mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>'; |
| 56 |
|
$this->P->cb_customcontenttemplate = 'customer/login'; |
| 57 |
|
} elseif (isset($mLogin['status']) && $mLogin['status'] === 'accountinactive') { |
| 58 |
|
$this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>'; |
| 59 |
|
$this->P->cb_customcontenttemplate = 'customer/login'; |
| 60 |
|
} else { |
| 61 |
|
$this->P->oPayload->cl_html = $textcats->T('login_fail'); |
| 62 |
|
$this->P->cb_customcontenttemplate = 'customer/login'; |
| 63 |
|
} |