While I was waiting for an answer I decided to work with the function part of it...I got the function in custom functions, however it produces an error in any of these circumstances:
Line 1 is:
-public static function - produces unexpected public
-static function - produces unexpected verifyadmin
-function - produces undefined constant of verifyadmin (from the PHP file - not from customfunctions)
Thoughts?
Another thing I need to verify is how to obtain the referring URL to redirect BACK to that page if verification succeeds.
Thanks guys!
I think I noticed in one of your hastebins that you had $users->data() instead of $user->data somewhere. You might want to do a search for that.
Quick update, I spent a few hours last night looking at this and got very frustrated but I seem to be getting towards a solution. I hope to do some more investigation and testing before I can confidently send you something to use.
I hear ya on that! I spent like 5 hours trying to test it out and I just can't get it! I'm stumped! It shouldn't be this hard!
Where are you guys at with this? What's stumping you?