added remaining LSL2 entities
This commit is contained in:
11
LSL2/OIEVENT/CLICK/VERIFY_USER.BTN_OK.json
Normal file
11
LSL2/OIEVENT/CLICK/VERIFY_USER.BTN_OK.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"header": {
|
||||
"version": 1,
|
||||
"type": "record"
|
||||
},
|
||||
"body": {
|
||||
"record1": {
|
||||
"<1>": "declare subroutine get_property, end_dialog\r\ndeclare function msg, send_event\r\ndebug\r\n$INSERT LOGICAL\r\n$INSERT MSG_EQUATES\r\n$INSERT LSL_USERS_EQUATES\r\n\r\nPInfo = Get_Property( @WINDOW, '@PINFO' )\r\n\r\nUsername = Get_Property(@WINDOW:'.EDL_USERNAME','TEXT')\r\nPassword = Get_Property(@WINDOW:'.EDL_PASSWORD','TEXT')\r\n\r\n// A different user is signing. ie. LEAD signature override\r\nIF Username NE PInfo<1,1> THEN\r\n\tPInfo<1,2> = XLATE( 'LSL_USERS', Username, LSL_USERS_PASSWORD$,'X' )\r\nEND\r\n\r\nIF Password = PInfo<1,2> THEN\r\n\r\n\tEnd_Dialog( @WINDOW,TRUE$ )\r\n\t\r\nEND ELSE\r\n\r\n\tMsgInfo = ''\r\n\tMsgInfo<mtext$> = 'Password entered incorrectly...'\r\n\tMsgInfo<micon$> = 'H'\r\n\t\r\n\tVoid = Msg( '', MsgInfo )\r\n\t\r\n\tEnd_Dialog( @WINDOW,false$ )\r\nEND\r\n\r\n\r\nRETURN 0"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user