Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

Login form POST issue

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
SylvieLorxu
Posts: 5
Joined: Mon Jun 08, 2015 10:07 pm

Login form POST issue

Post by SylvieLorxu » Wed Jun 10, 2015 9:28 am

As there seems to be no API functionality to log an user in, I have written a login system like this:

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

<script>
history.go(-1);
</script>
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?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Login form POST issue

Post by skurudo » Fri Sep 23, 2016 12:53 pm

Nope ;-(
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password