Page MenuHomePhorge

Password history
ClosedPublic

Authored by machniak on Feb 7 2022, 11:14 AM.
Tags
None
Referenced Files
F11960694: D3361.id9571.diff
Wed, May 1, 4:42 PM
Unknown Object (File)
Wed, May 1, 1:47 AM
Unknown Object (File)
Tue, Apr 30, 11:31 AM
Unknown Object (File)
Tue, Apr 30, 11:30 AM
Unknown Object (File)
Tue, Apr 30, 11:30 AM
Unknown Object (File)
Tue, Apr 30, 11:30 AM
Unknown Object (File)
Tue, Apr 30, 11:30 AM
Unknown Object (File)
Tue, Apr 30, 11:30 AM
Subscribers
Restricted Project

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rK679a6c49cc40: Password history
Test Plan

./phpunit

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak created this revision.
  • Don't store more old passwords than it's required by the account policy
  • Merge branch 'master' into dev/password-retention
  • Fix "last" policy validation
mollekopf added inline comments.
src/app/Observers/UserObserver.php
320

I would make this a >= just to be safe (even if we technically *shouldn't* ever get there).

src/app/Rules/Password.php
195
if (strlen($password) == 0) {
  return false;
}

would be easier to read imo.

  • Merge branch 'master' into dev/password-retention
  • Small code improvement
This revision was not accepted when it landed; it landed in state Needs Review.Feb 16 2022, 12:27 PM
Closed by commit rK679a6c49cc40: Password history (authored by machniak). · Explain Why
This revision was automatically updated to reflect the committed changes.