Jump to content

Recommended Posts

Posted

Hello Everyone,

After checking some forum discussion, finally I've managed to check domain availabilty from external/home page :)

Procedure:

  • First go to (for edit)  /{blesta-install-directory}/config/blesta.php & search following line:

Configure::set("Blesta.csrf_bypass",array());

  • Now replace that line with following code (No need to disable automatic csrf token protection for whole site):
Quote

Configure::set("Blesta.csrf_bypass", array('config::preconfig','domain_form::index'));

 

b1.png.133ca0becabd9c92b0dbcba4e24e051b.png

  •  Now configure your external/home page domain checker form, here is my code:

b2.png.cd611a27bbb0e35686f56fd221c6d720.png

Quote

I've tested this with logicboxes (resellerclub) & namecheap module. Check live: http://nextophost.com :)

Thanks everyone :blesta:

  • 6 months later...
Posted
1 hour ago, faysal.mahmud89@gmail.com said:

i did not find "Configure::set("Blesta.csrf_bypass",array());" in blesta.php file

i did find Configure::set('Blesta.csrf_bypass', []);

  • "

same thing it's just using [ ] now for array( ).

Posted
6 hours ago, faysal.mahmud89@gmail.com said:

i did not find "Configure::set("Blesta.csrf_bypass",array());" in blesta.php file

i did find Configure::set('Blesta.csrf_bypass', []);

  • "

why not try our plugin , he will do the job for you

 

  • 6 months later...
  • 8 months later...
Posted

Thanks for the tutorial.

The line example from this tutorial seems to have changed to:

Configure::set('Blesta.csrf_bypass', []);

Can anyone confirm the new the new edit to make to this line?

Posted
On 6/28/2019 at 6:33 PM, Amit Kumar Mishra said:

you may put this inside []

--

'config::preconfig','domain_form::index'

------

 

and let me know if this works

Thank you.

Where/how should I put this? As a new line or?

Posted

What he's suggesting to do is to assume "[]" is equivalent to "array()" and set the same line as the OP:

Configure::set('Blesta.csrf_bypass', ['config::preconfig','domain_form::index']); 

 

  • 7 months later...
  • 9 months later...
  • 7 months later...
Posted
On 4/5/2018 at 11:12 PM, faysal said:

i place code in this page, can you check,

http://digitalsynapsebd.com/domain01.php
blesta install in a sub-doamin

Hi Faysal

Please could you guide me the way you did? 

I've a domain checker in my website and connected to link "mydomain.com/order/config/preconfig/domain" upon submission. But when clicked, I see general order page with all the package groups are shown. No domain checker and Not the keyword used in domain search bar in website

Posted
On 9/11/2017 at 9:18 PM, Ziaur Rashid said:

Hello Everyone,

After checking some forum discussion, finally I've managed to check domain availabilty from external/home page :)

Procedure:

  • First go to (for edit)  /{blesta-install-directory}/config/blesta.php & search following line:

Configure::set("Blesta.csrf_bypass",array());

  • Now replace that line with following code (No need to disable automatic csrf token protection for whole site):

 

b1.png.133ca0becabd9c92b0dbcba4e24e051b.png

  •  Now configure your external/home page domain checker form, here is my code:

b2.png.cd611a27bbb0e35686f56fd221c6d720.png

Thanks everyone :blesta:

Hi Ziaur.. I could not see ORDER folder inside Blesta directory.. 

I've added the link "mydomain/com/billing/order/config/preconfig/domain" in to submit button of domain checker in my website.. But when clicked, it shows general order page with all other options.. No domain availability checker.. 

I've added ENOM module and configured with my reseller account.. 

Kindly guide me.. 

Posted

Hi, I tried to follow the steps but I can't get it to work.

Change the configuration in blesta.php and it looks like this:

// Enable / disable automatic CSRF token verification
Configure :: set ('Blesta.verify_csrf_token', true);
// Bypasses automatic CSRF checking for a set of controllers and actions (eg. Array ('client_login :: index'))
// CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE
//Configure::set('Blesta.csrf_bypass', []);
Configure :: set ('Blesta.csrf_bypass', ['config :: preconfig', 'domain_form :: index']);

Then I put the form on the page where I need the domain checker:

<div class="section-domain clearfix mb-5">
<h2>Registra tu dominio</h2>
<p>Encuentre un dominio que exprese lo que hace y tome posesión de su marca</p>
<form action="/client_area/order/config/preconfig/domain" method="post" class="d-flex">
            <div class="input-group input-group-lg mr-2">
              <div class="input-group-prepend">
                <span class="input-group-text"> <i class="material-icons">Buscar</i>

                </span>
              </div>
              <input name="domain" type="text" class="form-control" placeholder="Ingresa tu dominio" aria-label="Buscar">
            </div>
            <button class="btn btn-primary btn-lg" name="lookup" type="submit">Buscar</button>
          </form>

</div>


But when clicked, it shows general order page with all other options .. No domain availability checker.

Can someone helpe?

Regards

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...