This topic is locked

Add Field to login page - for specific group

8/20/2016 19:02:31
PHPRunner General questions
lefty author

I am looking to add another field to the login page with a dropdown of various groups. The groups would be redirected to each of their own seperate output files with security (dynamic). So the login would be a seperate project and the redirects would be the main project with different output folders. I know I can use session variable in event to redirect , but I am not sure how to add field to login table since I can not see where I can setup a live field and use dropdown in editor with diffrent groups and keep session for that output folder without access to other output folders ( dynamic permission ). If I click fields in login on editor page, it just shows users table. I have the users table field called flddomain but in editor you cannot insert a field on login page and setup as lookup wheare is other pages you can insert field.
I can add custom input field variable but not sure how to use it in PHPrunner to actually check flddomain in a dropdown before logging in so the user goes to the correct output folder with security.? It would be nice to also redirect to different databases for each output file , but I need above first. I am thinking that this could be done easier with enterprise edition but never used it so not sure.

Sergey Kornilov admin 8/24/2016

Login page normally requires username and password only. If you need to add something else there you can do that using code snippet for instance or custom template variable.
You would also need to process what user enters on the Login page manually. The best place to do that is BeforeLogin event.