FORUMS


Current time: Mar 25th, 2017, 7:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External Form Security
Jan 15th, 2017, 9:07 AM
Post: #1
External Form Security
Hi all,
First post for me, and I begin by saying that FormTools is brilliant!

One slight concern I have, though I will be happy to admit if this is an error on my part is that when using external forms I cannot seem to get my one external form to stick to the access policy defined when setting up the form. At the moment anyone and everyone (including not logged in) can access my external form even when the form is set to Adminstrator Only access.

I have searched the forum for a fix to this but cannot find anything.

Can someone suggest a solution to this?

Many thanks in advance.
Find all posts by this user
Quote this message in a reply
Jan 15th, 2017, 1:49 PM
Post: #2
RE: External Form Security
The security that you are referring to only limits other logged-in users from viewing the form results, not the actual form. Are you only allowing FormTools user accounts to fill out your form?
Find all posts by this user
Quote this message in a reply
Jan 15th, 2017, 11:47 PM
Post: #3
RE: External Form Security
Thanks for the reply Alex.
Yes the aim is for only formtools users to be able to access the form.
Is there any coding that can be done to make a form abide by formtools internal form access policies?

Thanks again
Steve
Find all posts by this user
Quote this message in a reply
Jan 16th, 2017, 5:05 AM
Post: #4
RE: External Form Security
I think I did something similar by checking to see if the user was logged in in order to view a page. It was generic though and did not check to see if that user had rights to view the specific form. It's definitely possible but will involve some custom code. Sorry I couldn't be of more help!
Find all posts by this user
Quote this message in a reply
Jan 16th, 2017, 1:59 PM
Post: #5
RE: External Form Security
Hi Alex,
Again thank you for your response, what you suggest seems perfectly acceptable to me as login-check to access the form keeps the entire internet out and avoids a dual login system.

Can you point me in the right direction with code?

Thanks in advance
Steve
Find all posts by this user
Quote this message in a reply
Jan 17th, 2017, 4:24 PM
Post: #6
RE: External Form Security
Sorry for the late reply, its been a busy few days for me! I haven't been able to dig up the code I wrote for that. I know I saved it somewhere.. just cant remember where :-)

Check out the /global/code/accounts.php file. There you will find lots of well commented login related code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)