Page 1 of 1

Authentication

PostPosted: Tue Dec 26, 2017 8:07 pm
by Acidshock
What is the recommended method for custom reports, etc. to authenticate VICIDIAL users? Are we able to use some of the includes? If so is there any documentation? I have used my own stuff in the past but I am trying to be more "inline."

Re: Authentication

PostPosted: Tue Dec 26, 2017 8:16 pm
by williamconley
This really should be in Support rather than development. I'll move it.

The beginning of every php page is security (well, after loading of variables). Yes, you can copy that same code to utilize the Vicidial authentication system in your custom reports OR you can begin with a Vicidial report and just rename the page.

Re: Authentication

PostPosted: Tue Dec 26, 2017 8:28 pm
by mflorell
The "user_authorization" function performs the user authorization, but William is right that you should copy all of the code at the beginning of one of the existing report scripts to make sure you have all of the variable filtering in the beginning and the error messages after the "user_authorization" function call, to make sure everything is going to work as it should.