Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This article discusses a way to display different login pages by passing parameters set on the URL. The requirement that will be used as an example is to have two different URLs of the same login page to display for admin users and non-admin users. This article will be using a CRM app as an example.

Desired output

Image Added

Figure 1: Admin login page, with username and password fields displayed.

Image Added

Figure 2: Non-admin login page, with only the cloud login button displayed.

How To

Setting parameters on the URL

Image Added

Figure 3: Login page URL with the parameters set for admin view.

Image Added

Figure 4: Login page URL with the parameters set for non-admin view.

Parameters:

  • page=login
  • user=admin or user=non