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

features: Add Forgot Password link, update title from Sign-Up to Login, and add additional social media login options in login.html and login.css. #948

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

salonijoshi1980
Copy link
Contributor

@salonijoshi1980 salonijoshi1980 commented Oct 30, 2024

πŸ‘¨β€πŸ’» Description :

  • This pull request introduces several enhancements to the login experience, including the addition of a "Forgot Password" link, an update to the page title, and expanded social media login options. These changes are aimed at making the sign-in process clearer and more accessible to users.

Changes Made :

  • Added "Forgot Password" Link :
  1. Integrated a "Forgot Password" link on the login page.
  2. Users who may have forgotten their password now have an option to reset it, improving accessibility and reducing frustration.
  • Changed Page Title from "Sign-Up" to "Login":
  1. Updated the title on the login page from "Sign-Up" to "Login" to reduce confusion, as this page is specifically for users trying to log in rather than create a new account.

Added Additional Social Media Login Options :

  1. Expanded login options to include additional social media platforms.
  2. Users now have more flexibility and convenience when choosing a method to log in, enhancing the overall accessibility of the platform.
  • CSS Adjustments :
  1. Modified padding and margin properties for the login components to create consistent spacing.
  2. Updated font sizes for improved readability, especially on smaller screens.

Screenshot 2024-10-30 212014

Screenshot 2024-10-30 212034

Rationale :

-Page Title Change: Helps users immediately recognize the login page and reduces potential confusion about whether they’re on a registration or sign-in page.

  • Additional Social Media Logins: Expands user choices and potentially speeds up the login process, which can be especially beneficial for mobile users.

πŸ“„ Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (adds or updates related documentation)

πŸ“· Screenshots/GIFs (if any) :

  • Before Solving the issue :
  1. This sign-up title is wrong here because it's a login page .
  2. The sign-up button takes the input field , login button doesn't work before.
  3. Add 2 more Social Buttons.

Screenshot 2024-10-30 191330

  • After Solving the issue :
  1. Sign-up Title removed and replaced by Login.
  2. After adding links for sign-up page and link the login button with input field it works out and enhanced.
  3. Add a link for Forget password which enhance a feature for user if user forget password.
  4. Add direct social page opening which is great for users.

Screenshot 2024-10-30 210034

βœ… Checklist

  • I am a participant of GSSoC-ext.
  • I have followed the contribution guidelines of this project.
  • I have made this change from my own.
  • I have taken help from some online resources.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have added documentation to explain my changes.

Additional Information/Contact πŸ‘πŸ» :

🀝 GSSoC Participation

  • This PR is submitted under the GSSoC program.

Summary by CodeRabbit

  • New Features

    • Transitioned from a sign-up form to a login form.
    • Added a "Forgot Password?" link for password recovery.
    • Introduced social media sign-up options (GitHub, Google, Facebook).
  • Style

    • Enhanced layout and styling of the login form and input fields for improved user experience.

…n, and add additional social media login options
Copy link

coderabbitai bot commented Oct 30, 2024

Walkthrough

The changes in this pull request involve significant updates to the login.css and login.html files. In login.css, layout properties and styles for various classes have been adjusted to improve the visual structure and responsiveness of the login interface. In login.html, the form has transitioned from a sign-up to a login format, with new features including a password recovery option and social media sign-up links.

Changes

File Change Summary
login.css Adjusted layout properties, reduced .container width, modified .forms-container alignment, changed styling for .input-field, .btn, and .social-media classes.
login.html Transitioned from sign-up to login form, updated title and button labels, added "Forgot Password?" link, and included social media sign-up options. Function forgotPassword() added.

Possibly related PRs

  • I want to style login pageΒ #898: The changes in login.css and login.html in this PR involve styling and structural modifications to the login interface, which directly relate to the adjustments made in the main PR's login.css and login.html.

Suggested labels

hacktoberfest, level2, gssoc-ext, hacktoberfest-accepted

Suggested reviewers

  • GarimaSingh0109

Poem

In the land of code, where rabbits play,
A login form hops into the fray.
With colors bright and buttons bold,
A "Forgot Password?" tale unfolds.
So let us cheer for the changes made,
In the world of login, our joy won't fade! πŸ‡βœ¨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❀️ Share
πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@salonijoshi1980
Copy link
Contributor Author

Assigned me pls ..this @GarimaSingh0109 with label of hacktoberfest, Gssoc extd and level 3,it would be great if u do this✨.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🧹 Outside diff range and nitpick comments (1)
login.css (1)

100-103: Consider maintaining visual balance with left alignment

While left alignment can improve readability, consider these suggestions:

  • Add appropriate padding-left to maintain visual balance
  • Verify if 580px min-height is necessary for all screen sizes
.forms-container {
  display: flex;
  flex-direction: column;
  align-items: left;
+ padding-left: 2.5rem;
  padding: 2rem;
  width: 100%;
  min-height: 580px;
}
πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 7b65fe0 and 11d8dc5.

πŸ“’ Files selected for processing (2)
  • login.css (5 hunks)
  • login.html (2 hunks)
πŸ”‡ Additional comments (2)
login.css (1)

89-89: Verify container width reduction impact on responsive layouts

The container width reduction from 600px to 500px might affect the layout of form elements, especially with the new social media buttons. Please ensure this change doesn't cause overflow issues on medium-sized screens (tablets).

βœ… Verification successful

Container width change is aligned with responsive design patterns

The reduction to 500px max-width is safe as the codebase already implements proper responsive breakpoints:

  • Media queries handle smaller screens at 768px breakpoint
  • Container adjustments are properly managed across different viewport sizes
  • The 500px width sits comfortably between mobile (768px) and larger screen layouts
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any media queries or responsive adjustments related to container width
rg -l "container.*width|max-width.*container" --type css

Length of output: 58


Script:

#!/bin/bash
# Let's try a broader search to understand the responsive design context
# First, let's find all CSS files
fd -e css -x cat {} | grep -E "(@media|max-width|min-width|container)"

Length of output: 638

login.html (1)

Line range hint 1-103: Add missing security elements and dependencies.

Critical security and dependency issues need to be addressed:

  1. Firebase SDK is not included but used in the code
  2. Form lacks CSRF protection
  3. No Content Security Policy (CSP) headers defined

Add the following before the closing tag:

<!-- Firebase SDK -->
<script src="https://www.gstatic.com/firebasejs/9.x.x/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.x.x/firebase-auth.js"></script>

<!-- Initialize Firebase -->
<script src="firebase-config.js"></script>

Add CSRF token to the form:

<form action="#" class="sign-up-form">
    <input type="hidden" name="_csrf" value="<%= csrfToken %>">
    <!-- rest of the form -->
</form>

login.css Show resolved Hide resolved
login.css Show resolved Hide resolved
login.css Show resolved Hide resolved
login.html Show resolved Hide resolved
login.html Show resolved Hide resolved
login.html Show resolved Hide resolved
login.html Show resolved Hide resolved
login.html Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants