add some styling to otp form

This commit is contained in:
Andrew Dolgov 2013-04-16 21:15:41 +04:00
parent 9deca86d96
commit da1e51cdfb
2 changed files with 23 additions and 3 deletions

View File

@ -52,9 +52,10 @@ class Auth_Internal extends Plugin implements IAuthModule {
$return = urlencode($_REQUEST["return"]);
?><html>
<head><title>Tiny Tiny RSS</title></head>
<body>
<?php echo stylesheet_tag("utility.css") ?>
<body class="otp"><div class="content">
<form action="public.php?return=<?php echo $return ?>"
method="POST">
method="POST" class="otpform">
<input type="hidden" name="op" value="login">
<input type="hidden" name="login" value="<?php echo htmlspecialchars($login) ?>">
<input type="hidden" name="password" value="<?php echo htmlspecialchars($password) ?>">
@ -62,7 +63,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
<label><?php echo __("Please enter your one time password:") ?></label>
<input autocomplete="off" size="6" name="otp" value=""/>
<input type="submit" value="Continue"/>
</form>
</form></div>
<script type="text/javascript">
document.forms[0].otp.focus();
</script>

View File

@ -221,3 +221,22 @@ fieldset label {
color : gray;
}
body.otp {
margin : 1em;
padding : 0px;
}
form.otpform {
margin : 0px;
padding : 0px;
}
form.otpform label {
margin : 0px;
padding : 0px;
}
body.otp div.content {
display : inline-block;
width : auto;
}