Coder Social home page Coder Social logo

Comments (4)

Falafel65 avatar Falafel65 commented on August 15, 2024

Sorry, forgot to check my github for a while.

If you want to remove authentication (which you shouldn't not because of the write ability) you may have to only comment line 9 and 11, to leave the $isLogged = true;

from mavo-php.

chiotis avatar chiotis commented on August 15, 2024

Did this in mavo-backend.php but unfortunately it doesn't do the trick.
My sample app is located here https://arkdrop.app/demo/ and it seems to stuck on an logged out state, without the login button do anything
mv-mode is in edit, but it needs to login to turn the save functionality on.

from mavo-php.

Falafel65 avatar Falafel65 commented on August 15, 2024

Ok, I think I found it, it's missing some data that are set in login.php in $_SESSION.
At line 116 ($finalData = $_SESSION['user'];), you'll have to define the user data in an array, something like $finalData = array( 'login' => 'login', 'name' => 'User Name', 'isLogged' => true );
(sorry, the indent is lost in this editor)
The most important part is the "isLogged" key, used in mavo-php.js:114, set in :78

from mavo-php.

chiotis avatar chiotis commented on August 15, 2024

Thank you so much for your help!
I better understood the logic behind it.
Seems to do the trick.
This approach gives the login/logout links the "enable/disable edit" functionality, which seems fine (ux-wise)

from mavo-php.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.