1 package CXGN
::BrAPI
::Authenticate
;
8 requires
qw( bcs_schema );
10 sub authenticate_user
{
12 my $session_token = shift;
13 my $authenticate_level = shift;
15 my ($person_id, $user_type, $user_pref, $expired) = CXGN
::Login
->new($self->bcs_schema->storage->dbh)->query_from_cookie($session_token);
16 #print STDERR $person_id." : ".$user_type." : ".$expired;
18 if (!$person_id || $expired || $user_type ne $authenticate_level) {