{"id":4773,"date":"2025-11-02T10:51:07","date_gmt":"2025-11-02T07:21:07","guid":{"rendered":"https:\/\/vatamam.com\/blog\/?page_id=4773"},"modified":"2025-11-06T09:32:46","modified_gmt":"2025-11-06T06:02:46","slug":"expert-login","status":"publish","type":"page","link":"https:\/\/vatamam.com\/blog\/expert-login\/","title":{"rendered":"\u0648\u0631\u0648\u062f \u06a9\u0627\u0631\u0634\u0646\u0627\u0633"},"content":{"rendered":"<div class=\"vt-auth-page\" style=\"background:linear-gradient(160deg,#f0fdf4 0%,#dcfce7 50%,#f0fdf4 100%);\">\n<div class=\"vt-auth-card\">\n<div class=\"vt-auth-header\">\n  <div class=\"vt-brand-circle green\">\ud83c\udf93<\/div>\n  <h1>\u0648\u0631\u0648\u062f \u06a9\u0627\u0631\u0634\u0646\u0627\u0633<\/h1>\n  <p>\u067e\u0646\u0644 \u06a9\u0627\u0631\u0634\u0646\u0627\u0633\u06cc \u0648\u062a\u0645\u0627\u0645<\/p>\n<\/div>\n<div class=\"vt-auth-body\">\n  <div class=\"vt-auth-tabs\">\n    <button class=\"vt-auth-tab active\" data-tab=\"otp\" style=\"--act:#059669;\">\ud83d\udcf1 \u06a9\u062f \u06cc\u06a9\u0628\u0627\u0631\u0645\u0635\u0631\u0641<\/button>\n    <button class=\"vt-auth-tab\" data-tab=\"pw\">\ud83d\udd11 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631<\/button>\n  <\/div>\n  <style>.vt-auth-tabs .vt-auth-tab.active{background:#059669;}<\/style>\n  <div class=\"vt-alert\" id=\"el-al\"><\/div>\n\n  <div class=\"vt-auth-step active\" id=\"el-otp\">\n    <div class=\"vt-auth-step active\" id=\"el-otp-s1\">\n      <div class=\"vt-f\"><label><span class=\"ico\">\ud83d\udcf1<\/span>\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644<\/label>\n        <div class=\"vt-input-row\">\n          <input class=\"vt-input green\" id=\"el-ph\" type=\"tel\" placeholder=\"09xxxxxxxxx\" maxlength=\"11\" inputmode=\"numeric\">\n          <button class=\"vt-send-btn green\" id=\"el-send\">\u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u062f<\/button>\n        <\/div><\/div>\n    <\/div>\n    <div class=\"vt-auth-step\" id=\"el-otp-s2\">\n      <p class=\"vt-otp-hint\">\u06a9\u062f \u0627\u0631\u0633\u0627\u0644\u200c\u0634\u062f\u0647 \u0628\u0647 <span class=\"ph green\" id=\"el-ph-show\"><\/span><\/p>\n      <div class=\"vt-otp-boxes\" id=\"el-otp-boxes\">\n        <input class=\"vt-otp-box green\"><input class=\"vt-otp-box green\"><input class=\"vt-otp-box green\">\n        <span class=\"vt-otp-sep\">\u2014<\/span>\n        <input class=\"vt-otp-box green\"><input class=\"vt-otp-box green\"><input class=\"vt-otp-box green\">\n      <\/div>\n      <div class=\"vt-otp-footer\">\n        <span class=\"vt-timer green\" id=\"el-tm\">\u06f0\u06f2:\u06f0\u06f0<\/span>\n        <button class=\"vt-resend green\" id=\"el-rs\" disabled>\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f<\/button>\n        <button class=\"vt-back-btn\" id=\"el-bk\">\u2190 \u062a\u063a\u06cc\u06cc\u0631 \u0634\u0645\u0627\u0631\u0647<\/button>\n      <\/div>\n      <button class=\"vt-btn green\" id=\"el-verify\"><span>\u0648\u0631\u0648\u062f<\/span><\/button>\n    <\/div>\n  <\/div>\n\n  <div class=\"vt-auth-step\" id=\"el-pw\">\n    <div class=\"vt-f\"><label><span class=\"ico\">\ud83d\udcf1<\/span>\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644<\/label>\n      <input class=\"vt-input green\" id=\"el-pw-ph\" type=\"tel\" placeholder=\"09xxxxxxxxx\" maxlength=\"11\"><\/div>\n    <div class=\"vt-f\"><label><span class=\"ico\">\ud83d\udd11<\/span>\u0631\u0645\u0632 \u0639\u0628\u0648\u0631<\/label>\n      <div class=\"vt-pw-wrap\">\n        <input class=\"vt-input green\" id=\"el-pw-ps\" type=\"password\" placeholder=\"\u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\">\n        <button type=\"button\" class=\"vt-pw-eye\" onclick=\"vtPW('el-pw-ps',this)\" style=\"color:#059669;\">\ud83d\udc41<\/button>\n      <\/div><\/div>\n    <label class=\"vt-check\" style=\"--ac:#059669;\"><input type=\"checkbox\" id=\"el-rm\" style=\"accent-color:#059669;\">\u0645\u0631\u0627 \u0628\u0647 \u062e\u0627\u0637\u0631 \u0628\u0633\u067e\u0627\u0631<\/label>\n    <button class=\"vt-btn green\" id=\"el-pw-login\"><span>\u0648\u0631\u0648\u062f<\/span><\/button>\n  <\/div>\n<\/div>\n<div class=\"vt-auth-footer\">\u0647\u0646\u0648\u0632 \u062b\u0628\u062a\u200c\u0646\u0627\u0645 \u0646\u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u061f <a href=\"https:\/\/vatamam.com\/blog\/expert-registration\/\" class=\"green\">\u062b\u0628\u062a\u200c\u0646\u0627\u0645 \u06a9\u0627\u0631\u0634\u0646\u0627\u0633 \u2190<\/a><\/div>\n<\/div>\n<\/div>\n<script>\nif(typeof VatamamOTP==='undefined'){window.VatamamOTP=(function(){function g(b){return b.map(function(x){return x.value;}).join('');}function init(c,cb){if(!c)return null;var b=Array.from(c.querySelectorAll('.vt-otp-box'));if(!b.length)return null;c.style.direction='ltr';b.forEach(function(x,i){x.setAttribute('type','tel');x.setAttribute('inputmode','numeric');x.setAttribute('maxlength','1');x.addEventListener('keydown',function(e){if(e.key==='Backspace'){if(this.value)this.value='';else if(i>0){b[i-1].focus();b[i-1].value='';}e.preventDefault();}else if(!\/^[0-9]$\/.test(e.key)&&e.key!=='Tab')e.preventDefault();});x.addEventListener('input',function(){var v=this.value.replace(\/[^0-9]\/g,'');this.value=v?v[v.length-1]:'';if(this.value&&i<b.length-1){b[i+1].focus();b[i+1].select();}var code=g(b);if(code.length===b.length&&cb)cb(code);});x.addEventListener('focus',function(){this.select();});x.addEventListener('paste',function(e){e.preventDefault();var p=(e.clipboardData||window.clipboardData).getData('text').replace(\/[^0-9]\/g,'');b.forEach(function(a,j){a.value=p[j]||'';});var last=Math.min(p.length,b.length)-1;if(last>=0)b[last].focus();var code=g(b);if(code.length===b.length&&cb)cb(code);});});return{getCode:function(){return g(b);},clear:function(){b.forEach(function(x){x.value='';});if(b[0])b[0].focus();},focus:function(){if(b[0])b[0].focus();}};} return{init:init};})();}(function(){\nvar AJ='https:\/\/vatamam.com\/blog\/wp-admin\/admin-ajax.php',NO='8a275fe89b',NL='93a8267fcf';\nvar ph='',otp=null,tm=null,sc=120;\nfunction al(m,t){var e=document.getElementById('el-al');if(!m){e.style.display='none';return;}e.className='vt-alert '+(t||'err');e.textContent=m;e.style.display='block';}\nfunction pst(d,cb){var f=new FormData();Object.keys(d).forEach(function(k){f.append(k,d[k]);});fetch(AJ,{method:'POST',body:f}).then(function(r){return r.json();}).then(cb).catch(function(){al('\u062e\u0637\u0627 \u062f\u0631 \u0633\u0631\u0648\u0631');});}\ndocument.querySelectorAll('.vt-auth-tabs .vt-auth-tab').forEach(function(t){t.onclick=function(){\n  document.querySelectorAll('.vt-auth-tabs .vt-auth-tab').forEach(function(x){x.classList.remove('active');});\n  this.classList.add('active');\n  document.getElementById('el-otp').classList.toggle('active',this.dataset.tab==='otp');\n  document.getElementById('el-pw').classList.toggle('active',this.dataset.tab==='pw');\n  al('');\n};});\notp=VatamamOTP.init(document.getElementById('el-otp-boxes'),function(c){if(c.length===6)document.getElementById('el-verify').click();});\nfunction tick(){sc--;var m=Math.floor(sc\/60),s=sc%60;document.getElementById('el-tm').textContent=(m<10?'0'+m:m)+':'+(s<10?'0'+s:s);if(sc<=0){clearInterval(tm);document.getElementById('el-rs').disabled=false;document.getElementById('el-tm').textContent='\u0645\u0646\u0642\u0636\u06cc';}}\nfunction startTimer(){sc=120;clearInterval(tm);document.getElementById('el-rs').disabled=true;tick();tm=setInterval(tick,1000);}\ndocument.getElementById('el-send').onclick=function(){\n  ph=document.getElementById('el-ph').value.replace(\/\\D\/g,'');\n  if(!\/^09[0-9]{9}$\/.test(ph)){al('\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0646\u0627\u0645\u0639\u062a\u0628\u0631');return;}\n  var btn=this;btn.disabled=true;btn.textContent='\u0627\u0631\u0633\u0627\u0644...';\n  pst({action:'antique_send_recovery_code',phone:ph,user_type:'expert',nonce:NO},function(r){\n    if(r.success){document.getElementById('el-ph-show').textContent=ph;document.getElementById('el-otp-s1').classList.remove('active');document.getElementById('el-otp-s2').classList.add('active');al('');startTimer();otp.clear();otp.focus();}\n    else al(r.data.message);btn.disabled=false;btn.textContent='\u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u062f';});};\ndocument.getElementById('el-rs').onclick=function(){this.disabled=true;\n  pst({action:'antique_send_recovery_code',phone:ph,user_type:'expert',is_resend:1,nonce:NO},function(r){\n    if(r.success){al('\u06a9\u062f \u062c\u062f\u06cc\u062f \u0627\u0631\u0633\u0627\u0644 \u0634\u062f','ok');startTimer();otp.clear();}else al(r.data.message);\n    document.getElementById('el-rs').disabled=false;});};\ndocument.getElementById('el-bk').onclick=function(){clearInterval(tm);document.getElementById('el-otp-s1').classList.add('active');document.getElementById('el-otp-s2').classList.remove('active');al('');};\ndocument.getElementById('el-verify').onclick=function(){\n  var code=otp.getCode();if(code.length<6){al('\u06a9\u062f \u06f6 \u0631\u0642\u0645\u06cc \u0631\u0627 \u06a9\u0627\u0645\u0644 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f');return;}\n  var btn=this;btn.disabled=true;btn.querySelector('span').textContent='\u0628\u0631\u0631\u0633\u06cc...';\n  pst({action:'antique_verify_recovery_code_and_login',phone:ph,verification_code:code,nonce:NO},function(r){\n    if(r.success){al('\u2705 \u0648\u0631\u0648\u062f \u0645\u0648\u0641\u0642','ok');setTimeout(function(){window.location.href=r.data.redirect_url;},700);}\n    else{al(r.data.message);otp.clear();btn.disabled=false;btn.querySelector('span').textContent='\u0648\u0631\u0648\u062f';}});};\ndocument.getElementById('el-pw-login').onclick=function(){\n  var p=document.getElementById('el-pw-ph').value.replace(\/\\D\/g,''),pw=document.getElementById('el-pw-ps').value;\n  if(!p||!pw){al('\u0634\u0645\u0627\u0631\u0647 \u0648 \u0631\u0645\u0632 \u0627\u0644\u0632\u0627\u0645\u06cc \u0627\u0633\u062a');return;}\n  var btn=this;btn.disabled=true;btn.querySelector('span').textContent='\u0648\u0631\u0648\u062f...';\n  pst({action:'antique_expert_login_ajax',username:p,password:pw,remember:document.getElementById('el-rm').checked?1:0,nonce:NL},function(r){\n    if(r.success){al('\u2705 \u0648\u0631\u0648\u062f \u0645\u0648\u0641\u0642','ok');setTimeout(function(){window.location.href=r.data.redirect_url;},700);}\n    else{al(r.data.message);btn.disabled=false;btn.querySelector('span').textContent='\u0648\u0631\u0648\u062f';}});};\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-4773","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/pages\/4773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/comments?post=4773"}],"version-history":[{"count":2,"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/pages\/4773\/revisions"}],"predecessor-version":[{"id":4775,"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/pages\/4773\/revisions\/4775"}],"wp:attachment":[{"href":"https:\/\/vatamam.com\/blog\/wp-json\/wp\/v2\/media?parent=4773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}