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 #164

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Features #164

merged 5 commits into from
Nov 15, 2024

Conversation

croessner
Copy link
Owner

No description provided.

Christian Roessner added 5 commits November 14, 2024 21:20
This commit simplifies the cache loading logic by ensuring the user account is updated in Redis before querying cache names. It introduces a check for Redis errors and ensures known user details are only processed once, improving efficiency and clarity.

Signed-off-by: Christian Roessner <c@roessner.co>
Eliminated the unnecessary verification steps related to password history within the cache loading process. This streamlines the function and avoids redundant password lookups for already known wrong passwords.

Signed-off-by: Christian Roessner <c@roessner.co>
Renamed the function and updated its behavior to better reflect its purpose. The new function no longer returns the passDBResult and has an updated inline comment for clarity. Removed redundant return statements in the process.

Signed-off-by: Christian Roessner <c@roessner.co>
The check for `AccountField` being nil was unnecessary as the code handles the assignment condition elsewhere. This simplifies the `auth.go` file and ensures the logic is more streamlined and maintains correctness.

Signed-off-by: Christian Roessner <c@roessner.co>
Ensure authentication requests respect `NoAuth` setting and prevent storage of empty passwords in Redis cache. This update refines the process of handling user database queries and enhances security by avoiding redundant password history retrievals.

Signed-off-by: Christian Roessner <c@roessner.co>
@croessner croessner merged commit e2ae37f into main Nov 15, 2024
5 checks passed
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.

1 participant