-
|
Hi everyone, I'm a bit lost about how the API works. Last year (Lychee 4.7.1) I had to generate a USER API TOKEN (for cross-site by pass) then login with Session::login and store the authentication in a cookie that I had to give back to all further query Photo::add, etc. This year (Lychee 5.1.2) I have observed two weird fact : Ex of working command: Given that try to Session::login without API TOKEN does not work (I get the famous "Session expired" answer... not the most explicite error message by the way). My questions are :
Thanks in advance for your answers and to the developper to the global great work and animation of the github ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yes. with version 5, you should also notice that the buttons for the token, password, U2F etc are moved to a profile page. The code used of the authentication is here:
Okay THAT IS A BUG.
Yeah it is because of the CSRF verification. :| |
Beta Was this translation helpful? Give feedback.
Ok.
What works (for me)