From 689a82036c6dcb9d197e3d47b3b0722232754fc2 Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Mon, 23 Jan 2006 14:06:19 +0000 Subject: [PATCH] improvement to password-failure redirection (Bryn Divey) --- preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preferences.php b/preferences.php index 8b06a9d..efb69dd 100644 --- a/preferences.php +++ b/preferences.php @@ -84,7 +84,7 @@ class PreferencesDispatcher extends KTStandardDispatcher { $minLength = ((int) $KTConfig->get('user_prefs/passwordLength', 6)); if (strlen($password) < $minLength) { - $this->errorRedirectToMain(sprintf(_("Your password is too short - passwords must be at least %d characters long."), $minLength)); + $this->errorRedirectTo("setPassword", sprintf(_("Your password is too short - passwords must be at least %d characters long."), $minLength)); } // FIXME more validation would be useful. -- libgit2 0.21.4