Skip to content

allow using of disabled password reset mechanism for special cases - #28794

Merged
Pytal merged 1 commit into
masterfrom
fix/noid/guest-activation-pwd-reset-disabled
Sep 15, 2021
Merged

allow using of disabled password reset mechanism for special cases#28794
Pytal merged 1 commit into
masterfrom
fix/noid/guest-activation-pwd-reset-disabled

Conversation

@blizzz

@blizzzblizzz commented Sep 10, 2021

Copy link
Copy Markdown
Member
  • LostController has three endpoints
  • door opener email() still rejects
  • resetform(), reachable from mail, checks the token first and may report
    that password reset is disabled
  • setPassword() got its check removed as it is behind CSFR anyway and still
    requires a valid token
  • this allows special cases like activating a freshly created guest account

fixesnextcloud/guests#85

How to reproduce

  1. add to config.php: 'lost_password_link' => 'disabled',
  2. enable guest app
  3. invite guest user
  4. on the received invitation email, click "activate"

@blizzzblizzz added this to the Nextcloud 23 milestone Sep 10, 2021
@blizzz
blizzz requested review from a team, CarlSchwan, ChristophWurst, Pytal, icewind1991 and skjnldsv and removed request for a teamSeptember 10, 2021 20:43
@blizzz
blizzzforce-pushed the fix/noid/guest-activation-pwd-reset-disabled branch from 7c786b4 to a843d3cCompareSeptember 10, 2021 20:47
- LostController has three endpoints
- door opener email() still rejects
- resetform(), reachable from mail, checks the token first and may report
that password reset is disabled
- setPassword() got its check removed as it is behind CSFR anyway and still
requires a valid token
- this allows special cases like activating a freshly created guest account
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@skjnldsv

Copy link
Copy Markdown
Member

Nice catch!

@skjnldsv

This comment has been minimized.

@blizzz

This comment has been minimized.

@Pytal
Pytal merged commit 3a94d7c into masterSep 15, 2021
@Pytal
Pytal deleted the fix/noid/guest-activation-pwd-reset-disabled branch September 15, 2021 01:29
@PytalPytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 15, 2021
@Pytal

Copy link
Copy Markdown
Member

/backport to stable22

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: users and groups

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Password change is disabled

3 participants

@blizzz@skjnldsv@Pytal