gpt4 book ai didi

javascript - OTP Owncloud 标签隐藏

转载 作者:行者123 更新时间:2023-11-28 01:42:35 25 4
gpt4 key购买 nike

我使用 Owncloud 的一次性密码应用程序,在登录表单上添加了第二个密码字段,对多 otp 服务进行身份验证。

问题是 otp 输入字段中的文本字段的标签没有隐藏。

以下 .js 是相关的:

(function() {
var saml = document.createElement('script'); saml.type = 'text/javascript';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(saml); })();

$(document).ready(function(){
//$('#password').parent().hide();
$('#password').parent().removeClass("infield groupbottom");
$('#password').parent().addClass("infield groupmiddle");
$('#password').parent().after(
'<p class="infield groupbottom">'+
'<input id="otpPassword" type="password" placeholder="" data-
typetoggle="#show" value="" name="otpPassword"'+
'original-title="">'+ '<input type="text" name="password-clone"
tabindex="0" autocomplete="off" style="display: none;"
original-title="">'+ '<label class="infield" for="otpPassword">One
Time Password</label>'+ '<img id="password-icon" class="svg" alt=""
src="/core/img/actions/password.svg">'+

'</p>');
$('#remember_login').hide();
$('#remember_login+label').hide();
//$('#submit').hide();
});

或者参见这里:http://pastebin.com/8YX2FEGt

也许有人解决了这个问题?

最佳答案

我确实想办法解决类(class)问题

您可以通过以下方式解决此问题:

>> core/css/styles.css

Line: 550 // width wert change
#body-login input[type="text"],
#body-login input[type="password"] {
width: 11.7em;
}


Line: 372 // add padding
#body-login .groupbottom input {
margin-top: 0;
border-top: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
padding-left:35px;
box-shadow: 0 1px 0 rgba(0,0,0,.1) inset !important;
}

关于javascript - OTP Owncloud 标签隐藏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20704014/

25 4 0