Skip to content

Commit

Permalink
11-FE/after-login-show-discojuice (#170)
Browse files Browse the repository at this point in the history
* Make discojuice active on login button

* When the user click on the `Local authentication` - redirect him to `/login` page.

---------

Co-authored-by: MilanMajchrák <milan.majchak@dataquest.sk>
  • Loading branch information
milanmajchrak and MilanMajchrák committed Jun 19, 2024
1 parent 7353b5d commit d7a049c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/aai/aai.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@
var auth = e.auth || null;
switch(auth) {
case 'local':
DiscoJuice.UI.setScreen(opts.localauth);
jQuery('input#login').focus();
// DiscoJuice.UI.setScreen(opts.localauth);
// jQuery('input#login').focus();
window.location.href = "/login";
break;
//case 'saml':
default:
Expand Down
2 changes: 1 addition & 1 deletion src/app/clarin-navbar-top/clarin-navbar-top.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="ml-auto pr-3">
<div *ngIf="authenticatedUser == null" class="badge clarin-login-badge px-2 py-1">
<span>
<a style="color: #FFF;" class="none" href="/login" >
<a style="color: #FFF;" class="signon" href="/login" >
<i class="fas fa-sign-in-alt pr-1 fa-lg"></i>{{'login.title' | translate}}
</a>
</span>
Expand Down

0 comments on commit d7a049c

Please sign in to comment.