diff --git a/WebApplication/Application.cpp b/WebApplication/Application.cpp index 9ef8902..bdbff8d 100644 --- a/WebApplication/Application.cpp +++ b/WebApplication/Application.cpp @@ -85,10 +85,14 @@ void Application::authEvent() { LOG(info) << "User " << u.id() << " (" << u.identity(Wt::Auth::Identity::LoginName) << ")" << " logged in."; if (m_loginPage) { - m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + if (m_navigationBar != nullptr) { + m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + } } else if (m_loginPageRef != nullptr && m_loginPageRef->parent() == m_root) { m_loginPage = m_loginPageRef->parent()->removeWidget(m_loginPageRef); - m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + if (m_navigationBar != nullptr) { + m_loginPageRef = m_navigationBar->addLoginItem(std::move(m_loginPage)); + } } setInternalPath("/", true); auto app = Amass::Singleton::instance(); diff --git a/resources/auth_css_theme.xml b/resources/auth_css_theme.xml index 1425aa7..ece9cd0 100644 --- a/resources/auth_css_theme.xml +++ b/resources/auth_css_theme.xml @@ -80,13 +80,13 @@
-

${tr:Wt.Auth.registration-form-title}

-

${tr:Wt.Auth.registration-form-info}

+ + ${password-description} -
- ${} + ${} +
@@ -99,51 +99,51 @@
${user-name-info class="Wt-info bulma-help"} ${confirm-is-you class="Wt-info bulma-help"} - ${
} +
+ ${} - ${} -
- + ${} +
+ -
- ${choose-password class="bulma-input"} - - - -
+
+ ${choose-password class="bulma-input"} + + +
- ${} + ${choose-password-info class="Wt-info bulma-help"} +
+ ${
} - ${} -
- -
- ${repeat-password class="bulma-input"} - - - -
+ ${} +
+ +
+ ${repeat-password class="bulma-input"} + + +
- ${} + ${repeat-password-info class="Wt-info bulma-help"} +
+ ${
} - ${} -
- -
- ${email class="bulma-input"} - - - -
+ ${} +
+ +
+ ${email class="bulma-input"} + + +
- ${} -
+ ${email-info class="Wt-info bulma-help"} +
+ ${
} ${}
@@ -154,8 +154,8 @@ ${icons} ${
} -
- ${ok-button} ${cancel-button} +
+ ${ok-button class="bulma-is-primary"} ${cancel-button class="bulma-is-light"}