1. Let user log in to my system
2. Let them click Vesta
3. Generate a new password
4. Send a post request with the username and password to Vesta's login page
This has always worked, but since the latest Vesta, the post request with login info only works the second time, so I had to add the following code to the login template:
Code: Select all
This causes Vesta to redirect to my login system when it fails, which repeats step 3 and 4, and then successfully logs the user in.
This solution works 100% of the time, but it isn't a nice solution, so I was wondering if anyone knew a better way to solve this?