Page MenuHomePhorge

Password history
ClosedPublic

Authored by machniak on Feb 7 2022, 11:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 5, 4:28 PM
Unknown Object (File)
Tue, Dec 5, 1:08 AM
Unknown Object (File)
Sat, Nov 25, 3:23 AM
Unknown Object (File)
Fri, Nov 24, 7:48 PM
Unknown Object (File)
Mon, Nov 20, 5:40 PM
Unknown Object (File)
Sat, Nov 18, 5:25 AM
Unknown Object (File)
Wed, Nov 8, 4:36 PM
Unknown Object (File)
Wed, Nov 8, 3:11 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.