Skip to content

Commit 8db9e2b

Browse files
committed
Add logout button to login-required view
This is needed because a server may invalidate the user's session, without the client-side code knowing of this. In this case, the user should be allowed to log out its (invalid) session, and login again to get a new session.
1 parent 0bb707e commit 8db9e2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

default-views/auth/login-required.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<div class="pull-right">
1414
<button id="register" type="button" class="btn btn-primary">Register</button>
1515
<button id="login" type="button" class="btn btn-success">Log in</button>
16+
<button id="logout" type="button" class="hidden btn btn-danger">Log out</button>
1617
</div>
1718
<h1>Log in to access this resource</h1>
1819
</div>

0 commit comments

Comments
 (0)