Revision 665

Date:
2017/10/23 21:01:22
Author:
ahitrov
Revision Log:
Logon method stores user profile (if applicable) inside itself in 'user_profile' hash field.

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/session/lib/session/Session.pm

     
    105 105 if ( ref $profile ) {
    106 106 my %data = session::Keeper::_get_hash_from_profile( $profile );
    107 107 $self->set ( %data );
    108 $self->{'user_profile'} = $profile;
    108 109 } else {
    109 110 my @plugins = split (/[\ |\t]+/, $state->{plugins});
    110 111 if ( grep { $_ eq 'users' } @plugins ) {
     
    122 123 if ( ref $profile ) {
    123 124 my %data = session::Keeper::_get_hash_from_profile( $profile );
    124 125 $self->set ( %data );
    126 $self->{'user_profile'} = $profile;
    125 127 } else {
    126 128 $self->set( login_error_code => 404 );
    127 129 }