Skip to content

Commit

Permalink
perf: perf pwd validate
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigDreamer committed Nov 20, 2023
1 parent 03b47a7 commit 3538c6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import 'highlight.js/styles/atom-one-dark.css'
<script>
async function checkCurrentAuth() {
const password = localStorage.getItem('pass')
if(!password)
window.location.href = '/password'
const response = await fetch('/api/auth', {
method: 'POST',
headers: {
Expand Down

0 comments on commit 3538c6a

Please sign in to comment.