Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add password reset success message in login page #6818

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<form
th:fragment="form"
class="halo-form"
name="login-form"
id="login-form"
th:action="${authProvider.spec.authenticationUrl}"
th:method="${authProvider.spec.method}"
th:fragment="form"
class="halo-form"
name="login-form"
id="login-form"
th:action="${authProvider.spec.authenticationUrl}"
th:method="${authProvider.spec.method}"
>
<div class="alert alert-error" role="alert" th:if="${param.error.size() > 0}" th:with="error = ${param.error[0]}">
<strong th:if="${error == 'invalid-credential'}">
Expand All @@ -23,6 +23,9 @@
<div class="alert" role="alert" th:if="${param.oauth2_bind.size() > 0}">
<strong th:text="#{form.messages.oauth2Bind}"></strong>
</div>
<div class="alert" role="alert" th:if="${param.password_reset.size() > 0}">
<strong th:text="#{form.messages.passwordReset}"></strong>
</div>

<div th:replace="~{__${fragmentTemplateName}__::form}"></div>

Expand Down Expand Up @@ -54,4 +57,4 @@
</li>
</ul>
</th:block>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
form.messages.logoutSuccess=登出成功。
form.messages.signupSuccess=恭喜!注册成功,请立即登录。
form.messages.oauth2Bind=当前登录未绑定账号,请尝试通过其他方式登录,登录成功后会自动绑定账号。
form.messages.passwordReset=密码重置成功,请立即登录。
form.error.invalidCredential=无效的凭证。
form.error.rateLimitExceeded=请求过于频繁,请稍后再试。
form.rememberMe.label=保持登录会话
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
form.messages.logoutSuccess=Logout successfully.
form.messages.signupSuccess=Congratulations! Sign up successfully, please login now.
form.messages.oauth2Bind=The current login is not bound to an account. Please try to log in through other methods. After successful login, the account will be automatically bound.
form.messages.passwordReset=Password reset successfully, please login now.
form.error.invalidCredential=Invalid credentials.
form.error.rateLimitExceeded=Too many requests, please try again later.
form.rememberMe.label=Remember me
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
form.messages.logoutSuccess=Cierre de sesión exitoso.
form.messages.signupSuccess=¡Felicidades! Registro exitoso, por favor inicie sesión de inmediato.
form.messages.oauth2Bind=El inicio de sesión actual no está vinculado a una cuenta. Intente iniciar sesión a través de otros métodos. Después de un inicio de sesión exitoso, la cuenta se vinculará automáticamente.
form.messages.passwordReset=¡Felicidades! La contraseña se ha restablecido con éxito.
form.error.invalidCredential=Credenciales inválidas.
form.error.rateLimitExceeded=Demasiadas solicitudes, por favor intente nuevamente más tarde.
form.rememberMe.label=Mantener sesión iniciada
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
form.messages.logoutSuccess=登出成功。
form.messages.signupSuccess=恭喜!註冊成功,請立即登入。
form.messages.oauth2Bind=當前登入未綁定至帳戶。請嘗試通過其他方法登入。成功登入後,帳戶將自動綁定。
form.messages.passwordReset=密碼重置成功。請立即登入。
form.error.invalidCredential=無效的憑證。
form.error.rateLimitExceeded=請求過於頻繁,請稍後再試。
form.form.rememberMe.label=保持登入會話
Expand Down
Loading