JWT tokens 1.0
This commit is contained in:
@@ -15,5 +15,6 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script src="js.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
4
server/front/main/js.js
Normal file
4
server/front/main/js.js
Normal file
@@ -0,0 +1,4 @@
|
||||
const token = localStorage.getItem("token");
|
||||
if (!token) {
|
||||
window.location.href = "./../register/index.html";
|
||||
}
|
||||
Reference in New Issue
Block a user