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

Allow logging in by IP address #308

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

jalsol
Copy link
Collaborator

@jalsol jalsol commented May 16, 2023

Description

Type of change: new feature

What

This PR allows logging into the account that is mapped with the IP address in the database.

To be more specific, this PR checks whether any Profile.ip matches the requesting IP address.

THIS PR MAY BRING BREAKING CHANGES. FURTHER TESTING IS REQUIRED.

Why

This allows a convenient login experience, especially for onsite competitions where IP addresses are controlled.

How Has This Been Tested?

Tested locally, in these cases:

  • The user has logged in from the current IP address before
  • The user has NOT logged in from the current IP address before
  • Normal login

Checklist

  • I have explained the purpose of this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • Informed of breaking changes, testing and migrations (if applicable).

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.

There are many situations that this commit is untested against. Not
ready for merging yet.
@jalsol jalsol marked this pull request as ready for review May 17, 2023 05:12
@jalsol jalsol marked this pull request as draft May 17, 2023 07:48
@jalsol jalsol marked this pull request as ready for review May 18, 2023 18:58
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

Successfully merging this pull request may close these issues.

2 participants