ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/truyentranh/code/guest/ |
<nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="/">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Update password</li> </ol> </nav> <div class="card"> <div class="card-header">Hello <strong class="text-info"><?php echo $fullname;?></strong>! Please complete the information below to continue: </div> <div class="card-body"> <div class="row"> <div class="g_auth_login col-md-12 text-center"> <img class="profile-user-img button_edit_image img-fluid img-circle" src="<?php echo $link_avatar;?>" alt="" id="OpenImgUpload"> </div> <div class="g_auth_login col-md-12 d-flex justify-content-center"> <form class="" action="" method="post" id="form_update_and_login"> <input type="hidden" value="<?php echo $guest_id;?>" name="guest_id"> <?php /*if($_SESSION['openid_type']=='facebook'){ if (!filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) { echo '<input type="hidden" name="auth_code" id="auth_code" value="">'; } }*/ ?> <!-- Email input --> <div class="form-group form-outline mb-2"> <label class="form-label" for="email_user">Email address</label> <input type="email" id="email_user" name="email_user" autocomplete="off" class="form-control" value="<?php if (filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) { echo $_SESSION['email']; } ?>" <?php if($_SESSION['openid_type']=='google'){ echo 'disabled'; }else{ if (filter_var($_SESSION['email'], FILTER_VALIDATE_EMAIL)) { echo 'disabled'; } } ?> /> </div> <!-- Password input --> <div class="form-group form-outline mb-2"> <label class="form-label" for="password">Password</label> <input type="password" id="password" class="form-control" required /> </div> <!-- Password input --> <div class="form-group form-outline mb-2"> <label class="form-label" for="re_password">Re-type Password</label> <input type="password" id="re_password" class="form-control" name="re_password" required /> </div> <div class="alert alert-danger alert-dismissible box_info_alert" id="success-alert"> <span id="success-alert-text"></span> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> <!-- 2 column grid layout for inline styling --> <div class="row mb-2 mt-4"> <!-- Submit button --> <input type="submit" class="submit" style="display:none;" name="submitbt"> <a class="update_and_login btn btn-info text-white" href="javascript:void(0);">Update and Login</a> </div> <!-- Register buttons --> <div class="alert alert-warning alert-dismissible fade show mt-4" role="alert"> This password is not of your Google/Facebook account, only used to login to the web if your Google/Facebook account is locked <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> </form> </div> </div> </div> </div> <div class="modal fade" id="auth_code_modal" tabindex="-1" aria-labelledby="auth_code_modalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> Please enter the verification code sent to your email: <b id="txt_email"></b> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="mb-3"> <label for="txt_auth_code" class="form-label">Auth code</label> <input type="text" class="form-control" id="txt_auth_code" name="txt_auth_code" aria-describedby="emailHelp"> <div id="emailHelp" class="form-text">Please check email (inbox or spam) <b id="txt_email2"></b> and input auth code .</div> </div> </div> <div class="modal-footer"> <a class="send_auth_code btn btn-danger" href="javascript:void(0);">Submit</a> <a class="dong m-l-5 btn btn-dark" href="javascript:void(0);" data-bs-dismiss="modal">Close</a> </div> </div> </div> </div> <script> $(document).ready(function() { var cur_url = document.location.href.split("#"); if (validateEmail(cur_url[1])) { toastr.warning('Email ' + cur_url[1] + ' already registered, please choose another email!'); window.history.pushState('page2', 'Title', cur_url[0]); } function validateEmail(email) { var re = /\S+@\S+\.\S+/; return re.test(email); } const myArray = cur_url[1].split("--"); if (myArray[0] == 'auth_code_input') { $('#auth_code_modal').modal('show'); var email = myArray[1].replace("[]", "@"); $(".modal-header #txt_email").html(email); $(".modal-body #txt_email2").html(email); window.history.pushState('page2', 'Title', cur_url[0]); } $('.send_auth_code').click(function(){ var txt_auth_code = $('#txt_auth_code').val(); if(txt_auth_code==''){ swal.fire('','Please enter the auth code!'); return false; } var guest_id = $('input[name="guest_id"]').val(); $.ajax({url: '?act=ajax&code=auth_code&txt_auth_code='+txt_auth_code+'&guest_id='+guest_id, 'dataType':'json', success: function(result){ if(result.status=='fail'){ swal.fire('','Wrong auth code, please try again!'); return false; }else{ location.href=result.url_ref; } }}); }) }); </script>