Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login issue #1136

Open
Sribabu-Mandraju opened this issue Jun 12, 2024 · 22 comments
Open

Login issue #1136

Sribabu-Mandraju opened this issue Jun 12, 2024 · 22 comments

Comments

@Sribabu-Mandraju
Copy link

Hi everyone,

I'm currently stuck on the login section and need some help. Here's a detailed description of the problem:

Issue:
The project requires users to log in to access the application, but there is no registration page or option available in both the front-end and back-end. This prevents new users from creating an account and logging in.

Steps Taken So Far:

Successfully cloned and set up the project on my local machine.
Confirmed that the website is running locally.
Attempted to access the login page, but no registration option is available.
Environment:

Operating System: Windows 10
Browser: Chrome 90.0.4430.210
Node.js Version: 14.17.0
Project Version: 4.0.0
Expected Behavior:

There should be a registration page or an option to sign up for a new account.
Users should be able to register, create an account, and log in to access the application.
Actual Behavior:

There is no registration option on the login page or anywhere else in the application.
Screenshots:
No registration option on the login page:

Additional Information:

I've checked the project documentation and didn't find any instructions regarding user registration.
Looking for guidance on how to add a registration page or enable user registration.

@RaoUsama7
Copy link

Hi everyone,

I see that there's an issue with the login section, specifically the lack of a registration option for new users. I'd like to help resolve this problem.

Proposed Solution:
Front-End:

Create a Registration Page: Add a new page for user registration with fields for username, email, and password.
Form Validation: Implement basic validation for the registration form to ensure data integrity.
Back-End:

API Endpoint: Develop an API endpoint for user registration that handles the creation of new user accounts.
User Model: Ensure the user model in the database can handle the new user data and save it securely.
Steps to Implement:
Front-End:

Add a new registration component.
Update the navigation to include a link to the registration page.
Ensure the login page has a link to the registration page.
Back-End:

Create a new route for user registration.
Implement the logic to add new users to the database.
Ensure password encryption for security.

Conclusion:
By implementing the above solution, we can add a registration page and enable user registration, allowing new users to create accounts and access the application.

I am eager to take on this task and implement the necessary changes. Please assign this issue to me, and I will ensure it is handled promptly.

Best regards,
Usama

@RaoUsama7
Copy link

should I assign it to myself or you will ?

@Sribabu-Mandraju
Copy link
Author

should we do it together

@Sribabu-Mandraju
Copy link
Author

Hi @RaoUsama7

I hope you're doing well. I wanted to let you know that I'll be focusing on the frontend part of our project. Could you please take charge of developing the new API on the backend?

Thank you, and please let me know if you need any information or assistance.

@Harshey-KS
Copy link

Hello guys, will you create a pull request for this or share it here in the comments?

@Harshey-KS
Copy link

RegisterForm.jsx is already present in frontend/src/forms. Ig its just not connected

@MSNoorul
Copy link

MSNoorul commented Jun 15, 2024

https://github.com/MSNoorul/idurar-erp-crm/tree/doc/update-readme
see the readme fill i give a details to how to login

@Sribabu-Mandraju
Copy link
Author

Hi team,

For now, we will continue using the provided credentials for user registration. However, please be prepared for potential updates in the future.

@RaoUsama7
Copy link

@Sribabu-Mandraju sure i will love to work on backend with you.

@Sribabu-Mandraju
Copy link
Author

@RaoUsama7 sure, You can reach me through https://x.com/sribabuMandraju

@Morel-D
Copy link

Morel-D commented Jun 18, 2024

Hello guys. I'll like to know has the login Issue being solved ?

@Sohamnayak4
Copy link

username : admin@demo.com - password : admin123
Use these to login. It worked for me.

@H9660
Copy link

H9660 commented Jun 21, 2024

Hi @RaoUsama7. I have implemented the desired registration functionality. You can check it here: #1140

@RaoUsama7
Copy link

@H9660 sure onto it.

@H9660
Copy link

H9660 commented Jun 22, 2024

Hi @RaoUsama7 . Have you reviewed the PR? Also I would like to know what other changes can be made in order to improve this?

@FaizanKhan78
Copy link

Hi everyone,

I'm currently stuck on the login section and need some help. Here's a detailed description of the problem:

Issue: The project requires users to log in to access the application, but there is no registration page or option available in both the front-end and back-end. This prevents new users from creating an account and logging in.

Steps Taken So Far:

Successfully cloned and set up the project on my local machine. Confirmed that the website is running locally. Attempted to access the login page, but no registration option is available. Environment:

Operating System: Windows 10 Browser: Chrome 90.0.4430.210 Node.js Version: 14.17.0 Project Version: 4.0.0 Expected Behavior:

There should be a registration page or an option to sign up for a new account. Users should be able to register, create an account, and log in to access the application. Actual Behavior:

There is no registration option on the login page or anywhere else in the application. Screenshots: No registration option on the login page:

Additional Information:

I've checked the project documentation and didn't find any instructions regarding user registration. Looking for guidance on how to add a registration page or enable user registration.

use

Email as adim@demo.com
Password adim123

Then it will login You successfully

@H9660
Copy link

H9660 commented Jun 28, 2024

The registration page is connected here in #1143
Once admin approves it this could be merged to solve this issue once and for all.

@abhishekmishra1201
Copy link

@H9660 bro i added registration page but still can't logging my network tab showing 304 status code
Uploading Screenshot (120).png…

@H9660
Copy link

H9660 commented Jul 11, 2024

Hi @salahlalami @lukasz1mroz Can we merge #1143 to after careful considerations to solve this issue.

@AKProgramer
Copy link

Hi guys if you are facing problem related to login first i would like to tell you that the email and password that is admin123 like this it's working at local mechine so what i did is that i change the login route by my self and disable the login process whatever the user is when he log in it does not matter if it's credentials are in db or not it will just went to dashboard.
I did it to solve the issue when i solved it then i just make it as it is before. I know that's not a good solution but this is what I did for solving issue.

@H9660
Copy link

H9660 commented Jul 28, 2024

@AKProgramer This is good to to access the application but we cant proceed without a login route in production.
I have made a fix for this in #1143. Here you can create your account and then access the dashboard after email verification.

@AKProgramer
Copy link

@H9660 I think there's misunderstanding while you read my comment I was not saying that in production. I know man no one can proceed without a login route in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants