<%init> # REST users (such as 'rest', 'satinet_const' and 'satsara_const') are not allowed to log in through web interface # It is allowed to 'satinet_const_user' and 'satinet_const_watcher' if( defined $ARGS{user} && ( $ARGS{user} eq 'rest' || ($ARGS{user} =~ /^(satinet|satsara)_/ && $ARGS{user} !~ /_user\s*$/ && $ARGS{user} !~ /_watcher\s*$/)) ){ $ARGS{'actions'} = [HTML::Mason::Commands::loc('REST users are not allow to login through WebUI')]; } else { my ($good, $msg) = RT::Interface::Web::AttemptPasswordAuthentication(\%ARGS); $ARGS{'actions'} = [$msg] if not $good and $msg; } % if ( RT::Interface::Web::MobileClient() || $ARGS{mobile} ) { <& /m/_elements/login, %ARGS &> % } else { <& /Elements/Login, %ARGS &> % }