iotsensor fixed but session valid broken
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
<%- include('top') %>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
@ -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>
|
Reference in New Issue
Block a user