[gnome-shell] Bluetooth: don't restrict the length of non numeric PINs



commit 3710b88ab9c9e59bb94ed71b0ef853fc07deab30
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Fri Aug 31 19:56:45 2012 +0200

    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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js
index 3e043c3..22a1b66 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]