[Rt-commit] r15956 - in rt/branches/3.999-DANGEROUS: etc lib/RT
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Sep 12 19:16:18 EDT 2008
Author: sunnavy
Date: Fri Sep 12 19:16:17 2008
New Revision: 15956
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/etc/config.yml
rt/branches/3.999-DANGEROUS/lib/RT/View.pm
Log:
r16686 at sunnavys-mb: sunnavy | 2008-09-13 02:05:41 +0800
make login by usernmae
Modified: rt/branches/3.999-DANGEROUS/etc/config.yml
==============================================================================
--- rt/branches/3.999-DANGEROUS/etc/config.yml (original)
+++ rt/branches/3.999-DANGEROUS/etc/config.yml Fri Sep 12 19:16:17 2008
@@ -28,7 +28,8 @@
- ErrorTemplates: {}
- CompressedCSSandJS: {}
- User: {}
- - Authentication::Password: {}
+ - Authentication::Password:
+ login_by: username
- Prototypism: {}
- I18N:
js: 1
Modified: rt/branches/3.999-DANGEROUS/lib/RT/View.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/View.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/View.pm Fri Sep 12 19:16:17 2008
@@ -73,7 +73,9 @@
div {
attr { id => 'login-box' };
Jifty->web->form->start( call => $next );
- render_param( $action, 'username', focus => 1 );
+ my $plugin = Jifty->find_plugin(
+ 'Jifty::Plugin::Authentication::Password' );
+ render_param( $action, $plugin->{login_by}, focus => 1 );
render_param( $action, $_ ) for (qw(password remember));
form_return( label => _(q{Login}), submit => $action );
Jifty->web->form->end();
More information about the Rt-commit
mailing list