Skip to content

Commit

Permalink
Polish details
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Apr 28, 2024
1 parent 976ca0f commit 24c1249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions oauth/idp_auth.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@
if (window.skip_idp_confirm)
return post_auth(session_id);

const confirmation = confirm('Log in at the external service?');
if (confirmation){
if (confirm('Log in at the external service?')){
window.localStorage.setItem(window.store_idp_skip_tpl + window.consumer_id, true);
post_auth(session_id);

} else {
console.log('Redirecting a user to login...');
window.localStorage.setItem(window.store_redir_key, saved_redir_url);
window.localStorage.removeItem(window.store_redir_key);
window.location.href = window.login_url;
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src_js/third_party/cifplayer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24c1249

Please sign in to comment.