Page MenuHomePhabricator

Bring new password validation into AuthPasswordEngine
ClosedPublic

Authored by epriestley on Jan 22 2018, 12:35 AM.
Tags
None
Referenced Files
F17707335: D18902.id.diff
Wed, Jul 16, 2:52 PM
F17706183: D18902.id45351.diff
Wed, Jul 16, 11:05 AM
F17692320: D18902.diff
Tue, Jul 15, 2:29 AM
F17682090: D18902.id45318.diff
Sun, Jul 13, 8:13 PM
Unknown Object (File)
Jun 9 2025, 2:24 AM
Unknown Object (File)
May 29 2025, 7:16 PM
Unknown Object (File)
May 10 2025, 10:28 AM
Unknown Object (File)
Apr 27 2025, 3:54 AM
Subscribers
None

Details

Summary

Ref T13043. We have ~4 copies of this logic (registration, lost password recovery, set password, set VCS password).

Currently it varies a bit from case to case, but since it's all going to be basically identical once account passwords swap to the new infrastructure, bring it into the Engine so it can live in one place.

This also fixes VCS passwords not being affected by account.minimum-password-length.

Test Plan

Hit all errors in "VCS Password" panel. Successfully changed password.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/auth/engine/PhabricatorAuthPasswordEngine.php
91

strlen($raw_confirm)?

This revision now requires changes to proceed.Jan 23 2018, 6:39 PM
  • Fix strlen().
  • Tested to actually hit this error.
  • Changed password.
This revision is now accepted and ready to land.Jan 23 2018, 6:43 PM
This revision was automatically updated to reflect the committed changes.