Jump to content

Recommended Posts

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:

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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']); 

 

Share this post


Link to post
Share on other sites

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...