Commit 810ce2ab3a80f995c129c957d97235573bf4871d

Authored by bshuttle
1 parent db8597b3

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.
... ...