Added automatic case lowering of the login.

This is just a little usability improvement based on user feedback.
dev
Loic d'Anterroches 2008-12-07 11:42:02 +01:00
parent 4add76dbc8
commit 7d999107b2
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class IDF_Views
return new Pluf_HTTP_Response_Redirect($url);
}
$v = new Pluf_Views();
$request->POST['login'] = (isset($request->POST['login'])) ? mb_strtolower($request->POST['login']) : '';
return $v->login($request, $match, Pluf::f('login_success_url'),
array(), 'idf/login_form.html');
}