import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -31,4 +31,18 @@
<?php echo $this->targetUser->openid ?>
</div>
</div>
<? if ($this->yubikey->enabled && !$this->yubikey->force): ?>
<div class="yui-gf">
<div class="yui-u first">
<?php echo $this->translate('Auth Method') ?>:
</div>
<div class="yui-u">
<? if ($this->targetUser->auth_type == Users_Model_User::AUTH_PASSWORD): ?>
<?= $this->translate('Password') ?>
<? else: ?>
YubiKey
<? endif ?>
</div>
</div>
<? endif ?>
</div>

View File

View File

@ -7,6 +7,14 @@
echo $this->accountInfoForm->password1;
echo $this->accountInfoForm->password2;
} ?>
<? if ($this->yubikey->enabled): ?>
<? if (!$this->yubikey->force): ?>
<?= $this->accountInfoForm->authMethod ?>
<? endif ?>
<div id="yubikeyWrapper" style="display:<?= $this->yubikey->force? 'block' : 'none' ?>">
<?= $this->accountInfoForm->yubikey ?>
</div>
<? endif ?>
<div class="yui-gf">
<div class="yui-u first">&nbsp;</div>
<div class="yui-u">
@ -14,6 +22,10 @@
<input type="button" id="cancel" value="<?php echo $this->translate('Cancel') ?>" onclick="COMMID.editAccountInfo.cancel()" />
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () {
<? if ($this->yubikey->enabled && !$this->yubikey->force): ?>
COMMID.general.toggleYubikey();
<? endif ?>
new YAHOO.widget.Button(
"save",
{