Update the welcome page to create a temporary admin user (#32283)
Closes #30010 Signed-off-by: Martin Bartoš <mabartos@redhat.com> Co-authored-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
parent
b13d6b4611
commit
db7694e7be
2 changed files with 7 additions and 7 deletions
|
@ -46,9 +46,9 @@ public class WelcomePage extends AuthServer {
|
|||
private WebElement welcomeMessage;
|
||||
|
||||
public boolean isPasswordSet() {
|
||||
return !(driver.getPageSource().contains("Please create an initial admin user to get started.") ||
|
||||
driver.getPageSource().contains("You need local access to create the initial admin user.") ||
|
||||
driver.getPageSource().contains("To get started with Keycloak, you first create an administrative user."));
|
||||
return !(driver.getPageSource().contains("Create a temporary administrative user") ||
|
||||
driver.getPageSource().contains("You will need local access to create the temporary administrative user.") ||
|
||||
driver.getPageSource().contains("you first create a temporary administrative user. Later, to harden security, create a new permanent administrative user"));
|
||||
}
|
||||
|
||||
public void setPassword(String username, String password) {
|
||||
|
|
|
@ -28,13 +28,13 @@
|
|||
<main class="pf-v5-c-login__main">
|
||||
<header class="pf-v5-c-login__main-header">
|
||||
<#if localUser>
|
||||
<h1 class="pf-v5-c-title pf-m-3xl">Create an administrative user</h1>
|
||||
<h1 class="pf-v5-c-title pf-m-2xl">Create a temporary administrative user</h1>
|
||||
<#if !successMessage?has_content>
|
||||
<p class="pf-v5-c-login__main-header-desc">To get started with ${productName}, you first create an administrative user.</p>
|
||||
<p class="pf-v5-c-login__main-header-desc">To get started with ${productName}, you first create a temporary administrative user. Later, to harden security, create a new permanent administrative user and delete the temporary user that was created during this setup.</p>
|
||||
</#if>
|
||||
<#else>
|
||||
<h1 class="pf-v5-c-title pf-m-3xl">Local access required</h1>
|
||||
<p class="pf-v5-c-login__main-header-desc">You will need local access to create the administrative user.</p>
|
||||
<p class="pf-v5-c-login__main-header-desc">You will need local access to create the temporary administrative user.</p>
|
||||
</#if>
|
||||
</header>
|
||||
<div class="pf-v5-c-login__main-body">
|
||||
|
@ -110,7 +110,7 @@
|
|||
</div>
|
||||
</form>
|
||||
<#else>
|
||||
<p>To create the administrative user open <a href="${localAdminUrl}">${localAdminUrl}</a>, or set the environment variables <code>KC_BOOTSTRAP_ADMIN_USERNAME</code> and <code>KC_BOOTSTRAP_ADMIN_PASSWORD</code> when starting the server.</p>
|
||||
<p>To create the temporary administrative user open <a href="${localAdminUrl}">${localAdminUrl}</a>, or set the environment variables <code>KC_BOOTSTRAP_ADMIN_USERNAME</code> and <code>KC_BOOTSTRAP_ADMIN_PASSWORD</code> when starting the server.</p>
|
||||
</#if>
|
||||
</#if>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue