Skip to the content
Documentation

Overriding the OAUTH log-in page layout template

No ratings yet

The page on which a user signs in and authorizes an OAuth application (oauth/authorize) is rendered with its own page layout, oauthloginpagelayout.tpl, not the site's normal page layout. The body comes from oauth/authorize.tpl. Both are in design/standard/templates/.

To give the page your site's look, put your own copies in your design, at the same paths:

design/mysite/templates/oauthloginpagelayout.tpl
design/mysite/templates/oauth/authorize.tpl

Your design must be in the design list of the siteaccess the user authorizes in (site.ini [DesignSettings]). Clear the template caches afterwards. Keep the form of oauth/authorize.tpl as it is (its fields, the hidden parameters of the request and the buttons); change only the markup around it.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.