我在 APEX 4.2(包)中制作了一个自定义身份验证例程。我输入的用户名由 APEX 转换为大写。
我怎样才能防止这种情况?
如何自定义错误消息,即“无效凭据”?
1.
APEX_AUTHENTICATION.LOGIN
(
p_username IN VARCHAR2,
p_password IN VARCHAR2,
p_uppercase_username IN BOOLEAN DEFAULT TRUE --If TRUE then p_username is converted to uppercase.
);
来源 [1]:http ://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_authentication.htm
有一个参数来控制用户名的大小写。看:
https://docs.oracle.com/cd/E37097_01/doc.42/e35127/apex_authentication.htm#AEAPI29157
这可能适用于 apex 4.2。在应用程序的登录页面上,使用以下代码创建一个“Before Header”进程:
if apex_application.g_notification ='Invalid Login Credentials' then
apex_application.g_notification :='Your Altered Failed Login Message Here';
end if;