mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
This commit is contained in:
parent
5c990f103e
commit
3710b88ab9
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue