# Login Page

{% hint style="info" %}
This feature requires any type of [PowerShell Universal license](https://docs.powershelluniversal.com/v1/get-started/licensing).
{% endhint %}

The login page colors, image, copyright and title can be customized by editing the `.universal/loginPage.ps1` file.

## Customizing the login page

You can host an image by using [Published Folders](https://docs.powershelluniversal.com/v1/dashboard/published-folders). In this example, we have a `dbatools.png` file in our local folder.

![DBATools Logo](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MKH6Ay6fb78ch2YQnga%2F-MKH6qNpgtnSc7P_Vw4X%2Fimage.png?alt=media\&token=a2980b34-c622-472f-8b8a-c1642046f5f2)

Next, we can create a `loginPage.ps1` file in the repository folder. Add the various colors, text and image URL to customize the login page. As soon as you save this file, you can refresh the login page to see the result.

```
$LoginPage = @{
 PrimaryColor = '#5c2751' 
 Title = 'DBATools Web Portal'
 Copyright = 'DBATools 2020' 
 HeaderFontColor = 'white'
 HeaderColor = '#4bc0d9' 
 SecondaryColor = '#6457a6'
 SecondaryFontColor = 'white'
 Image = 'http://localhost:5000/images/dbatools.png'
}

New-PSULoginPage @LoginPage
```

This login page looks like this.

![DBATools Web Portal Example](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MKH6Ay6fb78ch2YQnga%2F-MKH7LKv3UO6S6271Yxh%2Fimage.png?alt=media\&token=ee402a78-7684-469c-afaa-4a94101caee8)

## Adding Links

{% hint style="warning" %}
This documentation is for the upcoming 1.6 release.
{% endhint %}

You can add links to other web pages by using the `New-PSULoginPageLink` cmdlet.&#x20;

```
$LoginPage = @{
    Links = @(
        New-PSULoginPageLink -Text 'Google' -Url 'http://www.google.com'
        New-PSULoginPageLink -Text 'Microsoft' -Url 'http://www.microsoft.com'
    )
}

New-PSULoginPage @LoginPage
```

Links will appear at the top of the page.&#x20;

![](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-M_vMzOXnAK66e4vSG5k%2F-M_vP9EP1qal3Y6m-_Aj%2Fimage.png?alt=media\&token=1e57e9dd-a8b4-4d28-9259-3b3628d69770)
