Skip to content

Commit 6c8e43c

Browse files
committed
Add error message
1 parent a8ef665 commit 6c8e43c

File tree

1 file changed

+18
-0
lines changed
  • authorization/src/main/resources/templates

1 file changed

+18
-0
lines changed

authorization/src/main/resources/templates/login.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@
1010
<body style="padding: 30px;">
1111
<h1>Login Form</h1>
1212
<br>
13+
<div data-th-if="${param.error}">
14+
<div class="pui-alert pui-alert-danger" role="alert">
15+
<div class="grid">
16+
<div class="col col-fixed col-middle pan">
17+
<div class="icon icon-middle">
18+
<svg height="48" width="48" viewBox="2 2 44 44" xmlns="http://www.w3.org/2000/svg"
19+
class="icon-report">
20+
<path d="M31.46 6H16.54L6 16.54v14.91L16.54 42h14.91L42 31.46V16.54L31.46 6zM24 34.6c-1.43 0-2.6-1.16-2.6-2.6 0-1.43 1.17-2.6 2.6-2.6 1.43 0 2.6 1.16 2.6 2.6 0 1.44-1.17 2.6-2.6 2.6zm2-8.6h-4V14h4v12z"></path>
21+
</svg>
22+
</div>
23+
</div>
24+
<div class="col col-middle">
25+
<div><span class="em-high">Error: </span>email or password is incorrect.</div>
26+
</div>
27+
</div>
28+
</div>
29+
<br>
30+
</div>
1331
<form class="form" style="width: 800px;" method="post" data-th-action="@{/login}">
1432
<fieldset>
1533
<div>

0 commit comments

Comments
 (0)