15 if (isset($HB_ENV[
'HCUPOST'][
'username']) && isset($HB_ENV[
'HCUPOST'][
'password']) && isset($HB_ENV[
'HCUPOST'][
'cu'])){
17 $payload = json_encode(array(
'username' => $HB_ENV[
'HCUPOST'][
'username'],
'password' => $HB_ENV[
'HCUPOST'][
'password'],
'cu' => $HB_ENV[
'HCUPOST'][
'cu']));
19 $payload = HCU_PayloadEncode($HB_ENV[
'HCUPOST'][
'cu'], $payload,
true);
26 <title><?php echo hcu_displayHtml($HB_ENV[
'orgname']); ?></title>
27 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
28 <meta name=
"robots" content=
"noindex,nofollow,noarchive,nocache" />
29 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge" />
30 <meta name=
"referrer" content=
"always">
31 <meta name=
"viewport" content=
"width=device-width, initial-scale=1, shrink-to-fit=no" />
34 <link rel=
"stylesheet" href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity=
"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin=
"anonymous">
36 <!--Fontawesome CDN-->
37 <link rel=
"stylesheet" href=
"https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity=
"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin=
"anonymous">
40 print setIncludeFiles(
true,
true, HCU_array_key_value(
"contentTheme", $cuSettings),
true, $HB_ENV, $MC);
44 <!-- New Login CSS -->
45 <link rel=
'stylesheet' media=
'all' type=
'text/css' href=
'/banking/static/css/login.css' >
49 $(document).ready(
function() {
52 <?php
if ($HB_ENV[
"platform"] !==
"ADA" && $HB_ENV[
"platform"] !==
"APP") { ?>
53 if (document.cookie.search(
'cookieAccepted=true') < 0) {
54 var toast =
new CinnaToast({
'position':
'bottom-middle',
'showFor': 0});
55 toast.show(
"<?php echo $MC->msg('Using cookies'); ?>", [{
'text':
"<?php echo $MC->msg('Using cookies button'); ?>",
'action':
57 var date =
new Date(
'2038-01-19 04:14:07');
58 document.cookie =
"cookieAccepted=true; expires=" + date.toUTCString()+
"; path=/";
66 $.homecuValidator.setup({formErrorTitle:
"<?php echo $MC->msg("Error Occurred
", HCU_DISPLAY_AS_JS) ?>"});
69 $(
"#login-promo").hide();
70 $(
"#login-footer").hide();
76 var cu =
"<?php echo $HB_ENV['Cu'] ?>";
77 var homebankingpath =
"<?php echo $HB_ENV['homebankingpath'] ?>";
78 var logoSrc =
"<?php echo $cuSettings['imageLocations']['desktopCULogoLocation']; ?>";
79 var payload =
"<?php echo $payload ?>";
80 var platform =
"<?php echo $HB_ENV["platform
"] ?>";
83 var activatePath =
"<?php echo $HB_ENV['loginpath'] . "/hcuActivate.prg?
" . $HB_ENV['cuquery'] ?>" 84 $(
"#enroll").attr(
"href", activatePath);
87 var forgotPath =
"<?php echo $HB_ENV['loginpath'] . "/hcuResetPwd.prg?
" . $HB_ENV['cuquery'] ?>" 88 $(
"#forgot").attr(
"href", forgotPath);
91 var accountPath =
"<?php echo $HB_ENV['loginpath'] . "/hcuAccounts.prg?
" . $HB_ENV['cuquery'] ?>" 93 $(
'#logoImg').attr(
"src",logoSrc);
103 data: {action:
'ValidateUser', cu: cu, homebankingpath: homebankingpath, payload: payload, platform: platform},
104 success:
function (response) {
107 if (response.errors) {
109 $.homecuValidator.settings.formErrorTitle =
'<?php echo $MC->msg('Error Occurred
', HCU_DISPLAY_AS_JS); ?>';
110 $.homecuValidator.settings.formStatusField =
"loginFormStatus";
111 $.homecuValidator.displayMessage(response.errors, $.homecuValidator.settings.statusError);
114 loginStep = response.data.Step;
121 error:
function (response) {
132 data: {action:
'LoginNotices', cu: cu, homebankingpath: homebankingpath, platform: platform},
133 success:
function (response) {
134 var returnData = Array();
136 if (response.data.status.code ===
'000'){
138 if ((response.data.notice).length > 0) {
139 notice = JSON.parse(JSON.stringify(response.data.notice[0].notice_text));
140 $(
"#login-footer").append(notice);
141 $(
"#login-footer").show();
143 $(
"#login-footer").hide();
147 $(
"#login-footer").hide();
153 error:
function (response) {
163 data: {action:
'LoginPromos', cu: cu, homebankingpath: homebankingpath, platform: platform},
164 success:
function (response) {
165 var returnData = Array();
167 if (response.data.status.code ===
'000'){
169 if ((response.data.notice).length > 0) {
170 notice = JSON.parse(JSON.stringify(response.data.notice[0].notice_text));
171 $(
"#login-promo").append(notice);
172 $(
"#login-promo").show();
174 $(
"#login-promo").hide();
178 $(
"#login-promo").hide();
185 error:
function (response) {
190 if (loginStep ===
'') {
191 $(
"#stepone").show();
192 }
else if (loginStep ===
'MFA' || loginStep ===
'Challenge') {
193 $(
"#stepone").hide();
194 $(
"#steptwo").show();
196 }
else if (loginStep ===
'Setup') {
197 $(
"#stepone").hide();
198 $(
"#steptwo").hide();
200 }
else if (loginStep ===
'None') {
202 window.location.href = accountPath;
205 $(
'#btnLogin').on(
'click',
function () {
207 var loginid = $(
"#username").val();
208 var password = $(
"#password").val();
210 if (loginid ===
'' || password ===
'') {
211 $.homecuValidator.settings.formErrorTitle =
'<?php echo $MC->msg('Error Occurred
', HCU_DISPLAY_AS_JS); ?>';
212 $.homecuValidator.settings.formStatusField =
"loginFormStatus";
214 $.homecuValidator.displayMessage(
"Login ID and Password are required", $.homecuValidator.settings.statusError);
252 $(
".hcu-lang-toggle").on(
"click",
function(){
253 var lang = this.name;
254 ChangeLanguage(lang);
257 function ChangeLanguage(langCode) {
258 if (langCode !==
'' && langCode !==
'<?php echo $HB_ENV['Flang
']; ?>') {
259 postData =
"homecuLang=" + langCode;
260 $.post(
'<?php echo $HB_ENV['loginpath
'] . "/hcuSetLang.prg?" . $HB_ENV['currentQuery
']; ?>', postData,
function(data) {},
'json')
261 .done(
function(data) {
263 if (data.homecuInfo ==
'OK') {
265 document.location =
'<?php echo $HB_ENV['loginpath
'] . "/" . $HB_ENV['currentscript
'] . "?" . $HB_ENV['currentQuery
']; ?>';
275 $(
'#btnStartOver').click(
function () {
276 window.location =
'<?php echo $HB_ENV['loginpath
'] . "/" . $HB_ENV['currentscript
'] . "?" . $HB_ENV['cuquery
']; ?>';
283 <div
id=
"loginContent">
285 <div
class=
"logoDiv">
286 <div
class=
"d-flex justify-content-center">
287 <div
class=
"logo-card" id=
"header">
288 <div
class=
"d-flex justify-content-center">
289 <img
id=
"logoImg" alt=
"Digital Banking Logo" class=
"logo" src=
""/>
291 <!-- Pulling language options - copied from hcuPreContent.i -->
292 <?php
if (count($cuSettings[
'language']) > 1): ?>
293 <div
class=
"d-flex desk-lang-select" role=
"menu">
295 foreach ($cuSettings[
'language'] as $langKey => $langValue) {
296 if ($langKey != $HB_ENV[
'Flang']) {
298 <a href=
"#" class=
"hcu-lang-toggle" name=
"<?php echo $langKey; ?>" title=
"Select <?php echo $langValue; ?>"><div
class=
"flag_icons flag_icons_<?php echo $langKey; ?>"></div></a>
308 <div
id=
"loginFormStatus" class=
"homecu-formStatus k-block k-error-colored" style=
"display:none; margin-bottom:10px;max-width:800px;"></div>
309 <!-- Step 1 Username and Password -->
310 <div
class=
"container" id=
"stepone">
311 <div
class=
"d-flex justify-content-center">
313 <div
class=
"card-header">
314 <h3><?php echo $MC->msg(
'Login Title', HCU_DISPLAY_AS_HTML)?></h3>
315 <div
class=
"d-flex justify-content-end social_icon">
318 <div
class=
"card-body">
319 <form
id=
'loginFrm' role=
"form" method=
"post">
320 <input type=
'hidden' name=
"step" value=
"Member" />
321 <div
class=
"input-group form-group">
322 <div
class=
"input-group-prepend">
323 <span
class=
"input-group-text"><i
class=
"fas fa-user"></i></span>
325 <input type=
"text" class=
"form-control" placeholder=
"<?php echo $MC->msg('Login ID', HCU_DISPLAY_AS_HTML)?>" required aria-label=
"<?php echo $MC->msg('Login ID', HCU_DISPLAY_AS_HTML)?>" id=
"username" name=
"username">
327 <div
class=
"input-group form-group">
328 <div
class=
"input-group-prepend">
329 <span
class=
"input-group-text"><i
class=
"fas fa-lock"></i></span>
331 <input type=
"password" class=
"form-control" placeholder=
"<?php echo $MC->msg('Password', HCU_DISPLAY_AS_HTML)?>" required aria-label=
"<?php echo $MC->msg('Password', HCU_DISPLAY_AS_HTML)?>" id=
"password" name=
"password">
333 <div
class=
"form-group">
334 <div
class=
"d-flex justify-content-end">
335 <input
id=
"btnLogin" name=
"btnLogin" type=
"submit" value=
"<?php echo $MC->msg('Log In', HCU_DISPLAY_AS_HTML)?>" class=
"k-button k-primary btn-primary btn login_btn">
338 <div
class=
"form-group">
339 <div
class=
"d-flex justify-content-start">
340 <?php
if ($HB_ENV[
'flagset'] & $CU_MEMRESET) { ?>
341 <a href=
"#" id=
"forgot"><?php echo $MC->msg(
'Forgot your password', HCU_DISPLAY_AS_HTML); ?></a>
347 <div
class=
"card-footer">
348 <?php
if ($HB_ENV[
'flagset3'] & $CU3_SHOW_ENROLL): ?>
349 <div
class=
"d-flex justify-content-center links">
350 <?php echo $MC->msg(
"New To Home Banking", HCU_DISPLAY_AS_HTML); ?><a href=
"#" id=
"enroll"><?php echo $MC->msg(
"Enroll Now", HCU_DISPLAY_AS_HTML); ?></a>
356 <!-- Start of Login Promo Info -->
357 <div
class=
"d-flex justify-content-center">
358 <div
class=
"login-promo" id=
'login-promo'>
361 <!-- Start of Footer Notice Info -->
362 <div
class=
"d-flex justify-content-center">
363 <div
class=
"login-footer" id=
'login-footer'>
368 <div
class=
"container" id=
"steptwo">
369 <div
class=
"d-flex justify-content-center">
370 <div
class=
"large-card">
371 <div
class=
"card-header">
372 <h3>Additional Authentication</h3>
374 <div
class=
"card-body">
375 <form
id=
'authFrm' role=
"form">
376 <div
class=
"input-group form-group">
377 <label><?php echo $MC->msg(
'Login ID', HCU_DISPLAY_AS_HTML); ?>:</label>
378 <div
class=
"col-xs-12" >
379 <p
class=
"text-muted">TESTUSER</p>
382 <div
class=
"input-group form-group challenge">
383 <label
for=
"qid">This is a sample challenge question?</label>
385 <div
class=
"input-group form-group challenge">
386 <input
id=
"qid" type=
"text" class=
"form-control" placeholder=
"Answer" required aria-label=
"Answer">
388 <div
class=
"form-group">
389 <div
class=
"d-flex custom-control custom-switch">
390 <input type=
"checkbox" class=
"custom-control-input" id=
"rememberSwitch">
391 <label
class=
"custom-control-label" for=
"rememberSwitch">Remember This Device</label>
394 <!-- <div
class=
"input-group form-group sac">
395 <label
class=
"text-muted"><?php echo $MC->msg(
'Login Select SAC Destination', HCU_DISPLAY_AS_HTML); ?></label>
397 <div
class=
"input-group form-group sac">
398 <label
for=
"emails">Email to</label>
400 <div
class=
"input-group form-group sac">
401 <label
for=
"sac_deliver_email"><input type=
"radio" id=
"sac_deliver_email" value=
"e..n@homecu.com"> e..n@homecu.com</label>
403 <div
class=
"input-group form-group sac">
404 <label
for=
"phones">Text to</label>
406 <div
class=
"input-group form-group sac">
407 <label
for=
"sac_deliver_phone"><input type=
"radio" id=
"sac_deliver_phone" value=
"xxx-xxx-5555"> xxx-xxx-5555</label>
409 <div
class=
"form-group">
410 <div
class=
"d-flex flex-row-reverse flex-wrap">
411 <input
id=
"authBtn" name=
"authBtn" type=
"submit" value=
"<?php print $MC->msg('Continue', HCU_DISPLAY_AS_HTML); ?>" class=
"k-button k-primary btn-primary btn auth_btn">
412 <a href=
"#" id=
"btnStartOver" name=
"btnStartOver" class=
"btnStartOver"><?php print $MC->msg(
'Start Over', HCU_DISPLAY_AS_HTML); ?></a>
420 <!-- Setup Challenge Questions -->
421 <div
class=
"container" id=
"setup">
422 <div
class=
"d-flex justify-content-center">
423 <div
class=
"large-card">
424 <div
class=
"card-header">
425 <h3>Setup Challenge Questions</h3>
427 <div
class=
"card-body">
428 <form
id=
'setupFrm' role=
"form">
436 <!-- Google Analytics -->
438 $platform =
"desktop";
439 if ( $HB_ENV[
"platform"] ==
"ADA" ) {
440 $platform =
"android";
441 }
else if ( $HB_ENV[
"platform"] ==
"APP" ) {
443 }
else if ( $HB_ENV[
"platform"] ==
"MBL" ) {
444 $platform =
"mobile";
449 window.ga=window.ga||
function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+
new Date;
450 ga(
'create',
'UA-122960060-1',
'auto');
451 ga(
'send',
'pageview', {
452 'dimension1':
"<?php echo $HB_ENV['cuhost'] ?>" ,
453 'dimension2':
"<?php echo $HB_ENV['cu'] ?>" ,
454 'dimension4':
"<?php echo $serviceViewFromCuAdmin ? "admin
" : "user
" ?>",
455 'dimension5':
"<?php echo $platform ?>",
459 <script async src=
'https://www.google-analytics.com/analytics.js'></script>
460 <!-- End Google Analytics -->