kossiitkgp / KWoC-Frontend

Frontend Repo for Kharagpur Winter of Code, built in React
https://kwoc.kossiitkgp.org/
GNU General Public License v3.0
21 stars 40 forks source link

Log Out New Users if Reg Closed #236

Open harshkhandeparkar opened 6 months ago

harshkhandeparkar commented 6 months ago

Describe the bug

After registrations are closed, new users are allowed to log in, their profile picture is displayed but the registration form does not open.

Steps to reproduce

  1. Set REGISTRATIONS_OPEN env var to false.
  2. Log in with an unregistered account.

Expected behavior

The user should be immediately logged out with an error message saying that the user is not registered.

Put here any screenshots or videos (optional)

No response

Additional Information