Closed sanket-mundra closed 2 years ago
The login will definitely fail in that case as you can see in the screenshot above I got 401 UNAUTHORIZED
in logs, but whatever message we put in the logs there would be visible like: Admin authenticated successfully!! Welcome Admin!!
above. Do we also need to let the user login with those credentials?
Yes. That would the ideal scenario
Just before calling the authenticateUserLogin()
function inside /login
endpoint mapped function, I am calling the registerUser()
function for the hard-coded credential user and it generates the authentication token and add it to the DB. So, the login will succeed.
Closing this in favor of #146
Refers to this issue: #119
Description
Please include a summary of the change, motivation and context.
Testing
After doing the changes in the codebase, I created the new docker image of
crapi-identity
service with develop tag using the below command:The ran crapi using the below commands:
Saw this in the log after entering the required email and password on UI while logging in:
Documentation
Make sure that you have documented corresponding changes in this repository.
Checklist: