add ocid based login
This commit is contained in:
parent
d83309d4cd
commit
34af2b1fab
12 changed files with 131 additions and 28 deletions
|
|
@ -171,13 +171,13 @@ pandora.ui.home = function() {
|
|||
}),
|
||||
$signinButton = Ox.Button({
|
||||
title: Ox._('Sign In'),
|
||||
width: 74
|
||||
width: pandora.site.site.oidc ? 156 : 74
|
||||
})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: '112px',
|
||||
right: '82px',
|
||||
right: pandora.site.site.oidc ? '164px' : '82px',
|
||||
bottom: 0,
|
||||
margin: 'auto',
|
||||
opacity: 0
|
||||
|
|
@ -248,7 +248,13 @@ pandora.ui.home = function() {
|
|||
adjustRatio();
|
||||
|
||||
if (pandora.user.level == 'guest') {
|
||||
$signupButton.appendTo(that);
|
||||
if (pandora.site.site.oidc) {
|
||||
$signinButton.options({
|
||||
width: 156
|
||||
})
|
||||
} else {
|
||||
$signupButton.appendTo(that);
|
||||
}
|
||||
$signinButton.appendTo(that);
|
||||
} else {
|
||||
$preferencesButton.appendTo(that);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue