#730 modify validation error page
This commit is contained in:
parent
b86da3f040
commit
67f2a67252
1 changed files with 2 additions and 2 deletions
|
@ -236,10 +236,10 @@ public class AdminUserAction extends FessAdminAction {
|
|||
validate(form, messages -> {}, () -> asDetailsHtml());
|
||||
getUserBean().ifPresent(u -> {
|
||||
if (u.getFessUser() instanceof User && form.name.equals(u.getUserId())) {
|
||||
throwValidationError(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL), () -> asEditHtml());
|
||||
throwValidationError(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL), () -> asDetailsHtml());
|
||||
}
|
||||
});
|
||||
verifyToken(() -> asEditHtml());
|
||||
verifyToken(() -> asDetailsHtml());
|
||||
final String id = form.id;
|
||||
userService
|
||||
.getUser(id)
|
||||
|
|
Loading…
Add table
Reference in a new issue