UnamSanctam / UnamWebPanel

MIT License
164 stars 61 forks source link

Api parsing #206

Open PyYakro opened 1 year ago

PyYakro commented 1 year ago

Hello, I'm using Python to parse the panel, but I don't understand how to log in to the site if there is no data in the Network Inspector about passing the login password. Perhaps I don’t understand something and is it possible to somehow enter the site through the api?

UnamSanctam commented 1 year ago

When you first login you send the password to the ajax-auth.php file which then sets a PHP session that keeps you logged in. The server knows which server-side PHP session belongs to you through a client-side session ID cookie that contains a token for that session. In terms of the API endpoint.php then there's no login of course.