From 3710b88ab9c9e59bb94ed71b0ef853fc07deab30 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Fri, 31 Aug 2012 19:56:45 +0200 Subject: [PATCH] Bluetooth: don't restrict the length of non numeric PINs The protocol restriction is only for numeric PINs (passkeys, in bluez jargon). For passwords, any length is allowed. https://bugzilla.gnome.org/show_bug.cgi?id=683356 --- js/ui/status/bluetooth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index 3e043c375..22a1b6655 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -456,7 +456,10 @@ const PinNotification = new Lang.Class({ _canActivateOkButton: function() { // PINs have a fixed length of 6 - return this._entry.clutter_text.text.length == 6; + if (this._numeric) + return this._entry.clutter_text.text.length == 6; + else + return true; }, grabFocus: function(lockTray) {