refactor: improve error message styling for reset password form (#6791)

#### What type of PR is this?

/area core
/kind improvement
/milestone 2.20.x

#### What this PR does / why we need it:

优化重置密码表单的错误提示样式。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/6797/head
Ryan Wang 2024-10-08 18:30:55 +08:00 committed by GitHub
parent 2555cbf6ff
commit 16641e3331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -248,7 +248,9 @@
th:action="@{/password-reset/{resetToken}(resetToken=${resetToken})}" th:action="@{/password-reset/{resetToken}(resetToken=${resetToken})}"
method="post" method="post"
> >
<p style="color: red" role="alert" th:if="${error}" th:text="${error}"></p> <div class="alert alert-error" role="alert" th:if="${error}">
<strong th:text="${error}"></strong>
</div>
<div class="form-item"> <div class="form-item">
<label for="password" th:text="#{form.passwordResetLink.password.label}">Password</label> <label for="password" th:text="#{form.passwordResetLink.password.label}">Password</label>
<th:block <th:block