0

I have an application in Spring Boot.

I want to create a "registration succesful" alert after redirecting from the registration page to the login page, but I don't know how to create alert-info on the login page.

I already have 2 messages about logout and error:

<!-- error message -->
<div th:if="${param.error}">
    <div class="alert alert-danger">wrong email or password</div>
</div>

<!-- logout message -->
<div th:if="${param.logout}">
    <div class="alert alert-info">Logout</div>
</div>

And for example I want to get to the login page after registering by:

return "redirect:/Login?success";

and get this:

enter image description here

andrewJames
  • 19,570
  • 8
  • 19
  • 51
Treize
  • 21
  • 2

0 Answers0