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: Do not build encrypted password if there is none #51130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Feb 28, 2025

This fixes a regression from #48915 where user backends without passwords would store an encrypted empty password for new app passwords.

While they first work, after 5 minutes the password is checked and cannot be validated as there is none so the token expired.

Checklist

@juliusknorr
Copy link
Member Author

/backport to stable31

@juliusknorr
Copy link
Member Author

/backport to stable28

@juliusknorr
Copy link
Member Author

/backport to stable29

@juliusknorr
Copy link
Member Author

/backport to stable30

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Sounds like something that requires a test to avoid regressions.

Copy link
Contributor

@pabzm pabzm left a comment

Choose a reason for hiding this comment

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

Apart from the minor style suggestion it looks good to me! 👍

@susnux susnux added this to the Nextcloud 32 milestone Mar 2, 2025
@juliusknorr juliusknorr force-pushed the fix/credential-passwordless-auth branch from 666a017 to 777cd94 Compare March 6, 2025 08:31
@juliusknorr juliusknorr requested a review from a team as a code owner March 6, 2025 08:31
@juliusknorr juliusknorr requested review from icewind1991 and removed request for a team March 6, 2025 08:31
@juliusknorr
Copy link
Member Author

Pushed a unit test

@provokateurin provokateurin enabled auto-merge March 6, 2025 08:34
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.

4 participants