How to customize the logon interface in FineReport and the logon interface of finereport

Source: Internet
Author: User

How to customize the logon interface in FineReport and the logon interface of finereport

When logging on to the platform, you do not want to use the default built-in logon interface of FR. you want to use the custom logon interface to perform logon operations. The built-in logon interface is shown in:



 

Log on to the page, get the user name and password values, and send them to the report system. Report service authenticates the two parameters with the access authentication address.

Custom logon Interface

Logon interface settings

Custom html logon page: named login.html and saved in % FR_HOME % \ WebReport. The Code is as follows:

<Span> Dosubmit () is the main logic judgment. It implements the logical implementation process of passing the corresponding value to the report service.

Call the logon Interface

Log on to the system, choose management system> appearance configuration, select set logon page from the logon page options, and enter the custom logon page path: login.html, as shown in:

 

Summary

For example, if a user has his or her own system and inherits FR to his or her own system, the system has its own logon interface, if you want to log on to your system and log on to the report (the user name and password that you will enter are also sent to the report service for authentication), you do not need to log on again to access the report, that is, single-point logon. The steps are as follows:

1. Find your system logon page, such as login. jsp;

2. Introduce finereport. js in the head of the login. jsp page;

3. Define a function such as dosubmit in JavaScript on the login. jsp page, obtain the input username and password in dosubmit, and perform authentication using iframe or ajax.

4. In the FineReport platform system, set the custom logon page address to the logon address of your system.

If the OA system, report system, and project system are no longer on the same server, you can perform ajax cross-origin asynchronous single-point logon.

Session Value

For java systems, you can place the user name and password in the session, and integrate the report into the same environment. The report can automatically obtain the user name and password value for verification.

Restore the default logon page

What if I want to restore the logon interface to the default logon interface after the decision-making system is modified?

1) Open the installation directory % FR_HOME % \ WebReport \ WEB-INF \ resources and find fsconfig. xml


 

2) Delete the loginUrl attribute

Right-click the fsconfig.xmlfile and select the editor to open and delete the loginurl.pdf in the file. For example, delete login.htm:


 

In this case, you must disable the designer and re-enable it. Then, you can go back to the default logon page.

After restoring to the default logon interface, if you need to set the logon interface, you can log on with the Administrator account and set it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.