Comments (4)
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.
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.
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.
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)
- Use the mv-format to determine file type HOT 1
- Better handling for file uploads HOT 2
- Vulnerability in putFile and putData methods HOT 2
- Explain how to use -- user logins HOT 1
- Question mavo-php backend to save in specific location. HOT 6
- Edit mode not working HOT 8
- Auto-login in Mavo app after login page HOT 1
- Use the backend to retrieve data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavo-php.