Skip to content

Commit ed4892a

Browse files
authored
Merge pull request #6 from IUBLibTech/IUS-2547-logout-login-button-links
Login button, logout link, home page open to public
2 parents 9fa9433 + 2ed064f commit ed4892a

File tree

6 files changed

+12
-356
lines changed

6 files changed

+12
-356
lines changed

app/Http/Controllers/OrcidApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function fetchByOrcid()
2727
}
2828

2929
$accessToken = $record->access_token ?? null;
30-
$orcidId = $record->orcid ?? null; // <-- use the DB orcid for the URL
30+
$orcidId = $record->orcid ?? null;
3131

3232
if (empty($accessToken) || empty($orcidId)) {
3333
return view('orcid', [

resources/views/comanage.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<span><strong>Logged in as </strong></span>
7171
</div>
7272
<div class="rvt-ts-14 rvt-m-left-xs rvt-p-right-xs rvt-m-right-xs rvt-border-right">{{ cas()->user() }}</div>
73-
73+
<a href="{{ route('logout') }}">Logout</a>
7474
</div>
7575
</nav>
7676
</div>

resources/views/orcid.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<span><strong>Logged in as </strong></span>
7474
</div>
7575
<div class="rvt-ts-14 rvt-m-left-xs rvt-p-right-xs rvt-m-right-xs rvt-border-right">{{ cas()->user() }}</div>
76-
76+
<a href="{{ route('logout') }}">Logout</a>
7777
</div>
7878
</nav>
7979
</div>
@@ -217,3 +217,4 @@
217217
</script>
218218
</body>
219219
</html>
220+

0 commit comments

Comments
 (0)