I wanted to implement custom authentication in my oracle apex application. So for that I wrote some pl/sql codes to create a package.
create or replace package body user_tools_pak
as
function login_auth(field_userid in varchar2,field_password in varchar2)
return boolean is
begin
select user_id
from USER_TABLE
where user_id = field_userid
and password = field_password;
apex_util.set_session_state(p_name => 'SESSION_USERID', p_value => user_id);
return true;
exception
when no_data_found then
return false;
end login_auth;
end user_tools_pak;
But when I run it an error occurs.
Is there anything wrong with my code or am I missing something?