Commit 689a82036c6dcb9d197e3d47b3b0722232754fc2
1 parent
d85bf3a8
improvement to password-failure redirection (Bryn Divey)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4640 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
preferences.php
| ... | ... | @@ -84,7 +84,7 @@ class PreferencesDispatcher extends KTStandardDispatcher { |
| 84 | 84 | $minLength = ((int) $KTConfig->get('user_prefs/passwordLength', 6)); |
| 85 | 85 | |
| 86 | 86 | if (strlen($password) < $minLength) { |
| 87 | - $this->errorRedirectToMain(sprintf(_("Your password is too short - passwords must be at least %d characters long."), $minLength)); | |
| 87 | + $this->errorRedirectTo("setPassword", sprintf(_("Your password is too short - passwords must be at least %d characters long."), $minLength)); | |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | // FIXME more validation would be useful. | ... | ... |