# HG changeset patch # User Dan # Date 1248883775 14400 # Node ID ba1a31f16afe2ee6a564f1b4a9f14dd094b5c098 # Parent 4b868c7c241e996977469b55abd795e33d0ce731 Disabled JS login hook for iPhone Safari diff -r 4b868c7c241e -r ba1a31f16afe plugins/yubikey/yubikey.js --- a/plugins/yubikey/yubikey.js Fri Jul 17 14:05:50 2009 -0400 +++ b/plugins/yubikey/yubikey.js Wed Jul 29 12:09:35 2009 -0400 @@ -217,6 +217,11 @@ addOnloadHook(function() { + if ( is_iPhone ) + // kinda can't plug a yubikey into an iPhone + // ... yet? + return; + attachHook('login_build_form', 'yk_login_dlg_hook(table);'); attachHook('login_build_userinfo', 'if ( window.yubikey_otp_current ) userinfo.yubikey_otp = window.yubikey_otp_current;'); if ( title == namespace_list.Special + 'Preferences/Yubikey' )