summaryrefslogtreecommitdiff
path: root/classes/auth
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-04 12:08:50 +0400
committerAndrew Dolgov <[email protected]>2012-09-04 12:08:50 +0400
commitb8cdc39433ef48daff9e27d6a3225481a4f914bb (patch)
tree925f4fc69eac90642b675959e6ab52db77b950a3 /classes/auth
parent02cd6de12835fb470537b65d0b8adae925dd8bcb (diff)
focus input field in otp form
Diffstat (limited to 'classes/auth')
-rw-r--r--classes/auth/internal.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/auth/internal.php b/classes/auth/internal.php
index 0254d60e0..214d77801 100644
--- a/classes/auth/internal.php
+++ b/classes/auth/internal.php
@@ -44,7 +44,9 @@ class Auth_Internal extends Auth_Base {
<input type="password" size="6" name="otp"/>
<input type="submit" value="Continue"/>
</form>
- </form>
+ <script type="text/javascript">
+ document.forms[0].otp.focus();
+ </script>
<?php
exit;
}