On login page, user should input his username, password and verification code before clicking the login button. Then a verification operation will be invoked to authenticate this user. If successfully, the main page will be displayed. Otherwise, an error record will be generated and user will be redirected to the login page again.
LoginVerificationOp is a common operation in CommonBusinessService project which extends BTTServerOperation. Login verification logic is implemented in this operation. Please refer to src/definitions/operations/LoginVerificationOp.transaction for details.
LoginVerificationCtx context has a refRecord child which references to LoginVerificationRecord. Username, password, verification code are defined as data with several properties such as maximumLength and minimumLength, as shown as the following figure. Another data named message is used to record error message which will be promoted to users to indicate login errors.
login.xui is BTT XML-based transaction UI files created by the XUI editor. The login.xui file is in XML format at development time, and is then converted to Web 2.0 and SWT widgets at runtime by the XUI engine.
Please refer to xui/login.xui for details.
If login success, the main page will be displayed. Users can finish their business operations on the main page.
As shown in the figure above, there are Top Banner, Menu, and main area. Please refer to WebContent/jsp/mainPage.jsp for details.