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

Fix: Login issue - Need to click login with google button twice #193

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

SH4LIN
Copy link
Contributor

@SH4LIN SH4LIN commented Jan 27, 2025

Overview

• This PR resolves the issue where users need to press the “Login with Google” button twice to log in to the site.
• The issue occurs when the login cookie has expired.

Fixes/Covers

… is logged in

- Added check for 'reauth' parameter in the URL.
- Redirect to the login page if the user is already logged in.
@SH4LIN SH4LIN requested a review from mchirag2002 January 27, 2025 06:33
@SH4LIN SH4LIN self-assigned this Jan 27, 2025
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Code analysis identified issues

action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

⚠️ 1 warning


Powered by rtCamp's GitHub Actions Library

@@ -112,6 +112,14 @@ function container(): Container {
function plugin(): Plugin {
static $plugin;

$reauth = filter_input( INPUT_GET, 'reauth', FILTER_SANITIZE_STRING );
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1 (PHPCompatibility.Constants.RemovedConstants.filter_sanitize_stringDeprecated).

@SH4LIN SH4LIN merged commit c7d1869 into master Jan 27, 2025
1 of 2 checks passed
@SH4LIN SH4LIN deleted the fix/login-issue-with-expired-cookie branch January 27, 2025 07:28
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.

4 participants