code100x / job-board

152 stars 271 forks source link

✨ Improvement: login flow removal #201

Closed VineeTagarwaL-code closed 1 week ago

VineeTagarwaL-code commented 3 weeks ago

📜 Description

Objective: The goal is to streamline the user experience by removing the login and signup process for general users, making the job portal open to all without any barriers. This will simplify the user flow, similar to platforms like RemoteJobs, where users can easily access job listings without any hassle.

Tasks:

Remove Authentication for General Users:
    Eliminate the login/signup process for users accessing the job portal.
    Ensure that all job listings and related content are publicly accessible without requiring user authentication.

Preserve Admin Authentication:
    Maintain the authentication flow for the admin role.
    Admins should still be able to access their specific protected routes to manage jobs in the database.
    Focus on general user access in this task, leaving admin role management and portal development for a later phase.

Next Steps: After this task is completed, we will focus on enhancing the admin role functionalities and protecting specific routes as needed.

👟 Reproduction steps

No response

👍 Expected behavior

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Contributing Guidelines?

OmkarK97 commented 3 weeks ago

@VineeTagarwaL-code would like to work on this

Ameerjafar commented 3 weeks ago

@VineeTagarwaL-code can you assign this issue to work

Ameerjafar commented 3 weeks ago

@VineeTagarwaL-code without login/signup we can able to do job listings and related contents in the current code we don't need to login or signup(general users)

VineeTagarwaL-code commented 3 weeks ago

hey @Ameerjafar yes assigning you for this, leave your doubts below before starting to work on this

  1. yeah users can see and apply on jobs that are present without any flow
thrishank commented 3 weeks ago

hey @VineeTagarwaL-code it will be good if the login flow is optional . The users are more likely going to apply for more than one role and entering all the information required for the specific job every time could be bad experience. Once the users is logged they can update their profile. And while applying for jobs the code can auto fill the user data in job form(email, phone number, resume, expected salary, etc) similar to linkedin job form

Ameerjafar commented 3 weeks ago

@VineeTagarwaL-code the issue was already done, general users have no restrictions in any way. The administrator must check in before he can access the portal to perform any administrative tasks.

Ameerjafar commented 3 weeks ago

@VineeTagarwaL-code

VineeTagarwaL-code commented 2 weeks ago

i want to remove the signin feature wholely, no need of that for now

@thrishank yeah but we are not making something like linkedin, we are simply job posting portal for now ... companies can come and have there openings and you can apply to the lnk provided by them its as easy as possible

Ameerjafar commented 2 weeks ago

@VineeTagarwaL-code then how do we know the user is general or admin if we remove the entire signin process because any one can manage the jobs (hardcoded the admin signin email)

anuragnegi000 commented 1 week ago

@VineeTagarwaL-code then how do we know the user is general or admin if we remove the entire signin process because any one can manage the jobs (hardcoded the admin signin email)

we can introduce a special route exclusively for admins. This route would be shared only by the superadmin.

How would this work? Admins would access a login page through this special route. Upon attempting to log in, the superadmin would receive an email notification indicating that a person is requesting admin access. Once the superadmin grants access, the admin can log in and post jobs.

Why would the superadmin receive an email, even if they shared the route themselves? This is to confirm that the person attempting to log in is indeed the intended recipient of the special route.

anuragnegi000 commented 1 week ago

@VineeTagarwaL-code then how do we know the user is general or admin if we remove the entire signin process because any one can manage the jobs (hardcoded the admin signin email)

we can introduce a special route exclusively for admins. This route would be shared only by the superadmin.

How would this work? Admins would access a login page through this special route. Upon attempting to log in, the superadmin would receive an email notification indicating that a person is requesting admin access. Once the superadmin grants access, the admin can log in and post jobs.

Why would the superadmin receive an email, even if they shared the route themselves? This is to confirm that the person attempting to log in is indeed the intended recipient of the special route.

@VineeTagarwaL-code i would like to contribute into this if anyone else is not

VineeTagarwaL-code commented 1 week ago

@anuragnegi000 go for it

VineeTagarwaL-code commented 1 week ago

@VineeTagarwaL-code then how do we know the user is general or admin if we remove the entire signin process because any one can manage the jobs (hardcoded the admin signin email)

we will hard code admin, simple