Changeset 8502

Show
Ignore:
Timestamp:
03/29/08 17:43:31 (5 years ago)
Author:
vkgtaro
Message:

lang/perl/Chaostr:

  • TT::ForceUTF8 は協議の結果やっぱり使う事にした
  • Session::DynamicExpiry::Cookie を使うように変更
  • yaml 調整
Location:
lang/perl/Chaostr/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Chaostr/trunk/conf/chaostr_web.yml

    r7674 r8502  
    33session: 
    44  dbic_class: DBIC::Session 
    5   expires: 100000000 
     5  cookie_name: chaostr 
     6  cookie_expires: 0 
    67 
    78Plugin::Log::Colorful: 
  • lang/perl/Chaostr/trunk/conf/chaostr_web_dfv.yml

    r7712 r8502  
    1414                - String::length : 
    1515                    args :   
    16                         min : 3 
    17                         max : 10 
     16                        min : 2 
     17                        max : 30 
    1818                - +Chaostr::ValidateEm::Plugin::String::w 
    1919            password : 
    2020                - String::length : 
    2121                    args :   
    22                         min : 4 
    23                         max : 12 
     22                        min : 6 
     23                        max : 34 
    2424                - +Chaostr::ValidateEm::Plugin::String::w 
    2525        loose  :  
  • lang/perl/Chaostr/trunk/lib/Chaostr/Web/Controller/Login.pm

    r7689 r8502  
    3535    }); 
    3636 
    37  
    3837    my $v = $c->form->valid; 
    3938 
     
    5655 
    5756        # 2 週間 
    58         $c->session_expire_key( __user => 1_209_600 ); 
     57        $c->session_time_to_live( 1_209_600 ); 
    5958    } 
    6059    else { 
    6160        $c->session->{auto_login} = 0; 
    62  
    63         # 2 時間 
    64         $c->session_expire_key( __user => 7_200 ); 
    6561    } 
    6662 
  • lang/perl/Chaostr/trunk/lib/Chaostr/Web/Controller/Root.pm

    r7665 r8502  
    3030    my ( $self, $c ) = @_; 
    3131 
    32     $c->session_expire_key( __user => 7_200 ); 
    3332    if ( $c->session->{auto_login} ) { 
    34         $c->session_expire_key( __user => 1_209_600 ); 
     33        $c->session_time_to_live( 1_209_600 ); 
    3534    } 
    3635 
  • lang/perl/Chaostr/trunk/lib/Chaostr/Web/View/TT.pm

    r7665 r8502  
    33use strict; 
    44use warnings; 
    5 use base 'Catalyst::View::TT'; 
     5use base 'Catalyst::View::TT::ForceUTF8'; 
    66 
    77__PACKAGE__->config(