- Refactory cookie and API session handle. Insolated y routes and controllers (api-auth.go, app-auth.go).
- Cookie lifetime with sliding expiration - Fix bug single global expiresAt in JWT, now each token has unique ExpiresAt
This commit is contained in:
parent
bf8e2e90ec
commit
10ded026df
10 changed files with 358 additions and 304 deletions
15
storage/templates/dashboard.html
Normal file
15
storage/templates/dashboard.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{template "page_head" "Dashhboard page"}}
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>Welcome to protected dashboard</h1>
|
||||
<img class="goffeelogo" style="max-width: 300px;" src="/public/img/gopher_read.png" alt="Gopher read" />
|
||||
<hr>
|
||||
<h4><a href="/appsignout">Singout</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
{{template "page_footer"}}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue