git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493

This commit is contained in:
andrew.gilmore
2012-03-19 11:57:19 +00:00
parent 2a0f4900c3
commit 0e9ca75d77
1587 changed files with 500863 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- Add/modify columns
alter table SYSTEM_USERS add failed_login_attempts number(2);
insert into SYSTEM_CONFIGURATION (syco_id, parameter, value, description)
values (179, 'G_PASSWORD_FAILED_LOGINS', '3', 'The number of failed logins allowed due to an invalid password');
insert into MODULE_TEXT (mtxt_id, text_number, text, language)
values (21735, 3965, 'Invalid password. <p1> attempts remaining.', 'EN');
insert into MODULE_TEXT (mtxt_id, text_number, text, language)
values (21736, 3966, 'Invalid Password. 0 attempts remaining. Account locked.', 'EN');
CREATE OR REPLACE TRIGGER SYSTEM_USERS_BU_TRIG
BEFORE UPDATE OF user_locked ON system_users
FOR EACH ROW
DECLARE
BEGIN
IF :OLD.user_locked = 'Y'
AND :NEW.user_locked = 'N'
THEN
:NEW.failed_login_attempts := 0;
END IF;
END;
/
ALTER TRIGGER SYSTEM_USERS_BU_TRIG ENABLE;