Comments (9)
Hey, thanks for the reply, I need your help to understand it clearly I am a beginner that's why I am confused and your guidance will be helpful for me. So what I currently understand that I have to create a front page having login with username or email and have a password and on clicking the button it makes an AJAX request which can communicate with the server and the server will respond accordingly. So I have to create two file index and js having AJAX in it. Please do not irritate I want to start contributing to OPEN SOURCE and I need to solve this.
…
On Sat, Sep 19, 2020 at 10:48 PM Elit Altum @.***> wrote: Hey @deepharshsri https://github.com/deepharshsri ! Thank you fro showing interest. No, I did not mean that. The DB already stores user email and username. We just need to allow user to login by either email or username, whichever he provides in the request body. Therefore the method of finding a user before was only through username but now has to be extended to email as well. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5NZVIKEXGCYGFPVOTJFUTSGTRX5ANCNFSM4RTCCNCA .
From my understanding everything is already created and he only wants to extend the functionality. So here's the thing, has of this moment, the users can only login with their username and not with their email address. So what he wants you to do, is create a functionality that will allowed users to login with either their username, or their email address. along with their password of course. Hopefully that make sense.
from authexp-express-starter.
So we have to create a whole API with a database that saves user email/username and password in this?
from authexp-express-starter.
Hey @deepharshsri !
Thank you for showing interest. No, I did not mean that. The DB already stores user email and username. We just need to allow user to login by either email or username, whichever he provides in the request body. Therefore the method of finding a user before was only through username but now has to be extended to email as well.
from authexp-express-starter.
Hey @elit-altum looks like I've fixed it. I have created a PR. Please review the changes .
from authexp-express-starter.
from authexp-express-starter.
@elit-altum , is the route for user login is (POST)http://localhost:3000/login
? Having issues in finding the proper route.
Can you tell me what is the proper link?
from authexp-express-starter.
No please view the router
directories and API routes provided here to find out the correct route for testing.
from authexp-express-starter.
Okay.
from authexp-express-starter.
Closed via #11
from authexp-express-starter.
Related Issues (4)
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 authexp-express-starter.