iotsensor fixed but session valid broken

This commit is contained in:
newtbot
2024-01-25 03:26:56 +08:00
parent 7403f66c8a
commit 057fbe2afb
19 changed files with 173 additions and 237 deletions

View File

@ -1,4 +1,5 @@
<%- include('top') %>
<br>
<br>
<br>

View File

@ -57,6 +57,11 @@
//check if user is logged in
app.auth.isLoggedIn(function (error, data) {
if (data) {
$.scope.getUsername.update(data);
if (location.pathname == "/profile") {
$.scope.getUserDetails.update(data);
}
$("#cl-logout-button").show("fast");
$("#cl-api-button").show("fast");
$("#cl-profile-button").show("fast");
@ -127,4 +132,4 @@
</ul>
</div>
</div>
</nav>
</nav>