Initial commit 4.0.5-3
[usit-rt.git] / local / plugins / RT-Authen-ExternalAuth / html / Elements / DoAuth
1 <%once>
2 my $loaded_user = 0;
3 </%once>
4 <%init>
5
6 use RT::Authen::ExternalAuth;
7
8 my ($val,$msg);
9 unless($session{'CurrentUser'} && $session{'CurrentUser'}->Id) {
10     ($val,$msg) = RT::Authen::ExternalAuth::DoAuth(\%session,$user,$pass);
11     $RT::Logger->debug("Autohandler called ExternalAuth. Response: ($val, $msg)");
12 }
13
14 return;
15 </%init>
16
17 <%ARGS>
18 $user => undef
19 $pass => undef
20 $menu => undef
21 </%ARGS>
22