vaultexpress / vault-express Goto Github PK
View Code? Open in Web Editor NEWA simply secure sign-up/sign-in implementation for web app
License: MIT License
A simply secure sign-up/sign-in implementation for web app
License: MIT License
This should follows structure from Issue #12 Add unit tests script
something wrong within auth/index.js/passport.authenticate and auth/local.js/auth function
Add more info and make it more interesting
Get data and display it in /secure/profile route by ejs
when i pull upstream master the app no longer works:
module.js:549
throw err;
^
Error: Cannot find module 'express-session'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\Users\William\Documents\projects\vault-express\server.js:8:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
To protect our system from calling our APIs by using automate scripts/applications; this will be considered as abnormal behavior requests and we will drop all this kind of requests
The error message will be returned from server which we put it as configuration in ./config.js file.
This is mostly about design/positioning error messages on sign-in page, let's collab before u start to take this issue
use post method
At the moment, the forms are not throwing any errors if the wrong are inserted. Add a function to alert users to input a proper email or have a secure password or username.
This should follows structure from Issue #12 Add unit tests script
Use simple function as passport.js example
In a near future, we might need to use https on local machine. we will use ngrok (https://ngrok.com/) for solving
I don't have any favorite JS coding style and can't debate which one is better. So let's collab.
we will use same env variable name for all databases
Create a label to clearly distinguish the front-end tasks
To test sign-in api, auth/index.js => router.post('/signin',..);
This test should cover all cases, success case + wrong user + wrong password.
The validation such as sql injection/script tag, should not be included in this test, it will be in other issues.
Do we need callback/promises functions for db/db.js???
To test sign-in flow /signin.html
This test should cover all cases, success case + wrong user + wrong password + url redirection + error message displaying + etc...
The validation such as sql injection/script tag, should not be included in this test, it will be in other issues.
Make it persistent; ready for production
this gonna impact the whole project
It should be express router in ./api/index.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.