summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 00:28:09 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-29 00:28:09 +0000
commit90ed2d02cd11b44ce49a10997bb39fc6139a5b88 (patch)
tree82aa63ed598914eb98856bd08bd1d94dff9bb0dc /remoting/webapp
parent0ce3e73704807ea6abef1830a8905fef18e14b89 (diff)
downloadchromium_src-90ed2d02cd11b44ce49a10997bb39fc6139a5b88.zip
chromium_src-90ed2d02cd11b44ce49a10997bb39fc6139a5b88.tar.gz
chromium_src-90ed2d02cd11b44ce49a10997bb39fc6139a5b88.tar.bz2
Increase PIN minimum length to six digits.
BUG=134525 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/10676009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r--remoting/webapp/_locales/en/messages.json16
-rw-r--r--remoting/webapp/host_setup_dialog.js2
-rw-r--r--remoting/webapp/main.html5
3 files changed, 18 insertions, 5 deletions
diff --git a/remoting/webapp/_locales/en/messages.json b/remoting/webapp/_locales/en/messages.json
index 46547c0..eb2c2b4 100644
--- a/remoting/webapp/_locales/en/messages.json
+++ b/remoting/webapp/_locales/en/messages.json
@@ -231,8 +231,18 @@
"description": "Message displayed next to the checkbox that the user can select to allow crash dump collection and reporting."
},
"HOST_SETUP_DIALOG_DESCRIPTION": {
- "message": "To protect access to this computer, please choose a PIN. This PIN will be required when connecting from another location.",
- "description": "Explanatory text displayed when the user enables remote access or changes the PIN."
+ "message": "To protect access to this computer, please choose a PIN of $boldStart$at least six digits$boldEnd$. This PIN will be required when connecting from another location.",
+ "description": "Explanatory text displayed when the user enables remote access or changes the PIN.",
+ "placeholders": {
+ "boldStart": {
+ "content": "$1",
+ "example": "<b>"
+ },
+ "boldEnd": {
+ "content": "$2",
+ "example": "</b>"
+ }
+ }
},
"HOST_SETUP_HOST_FAILED": {
"message": "Failed to start remote access service.",
@@ -311,7 +321,7 @@
"description": "Instructions shown below the access code when it is ready to be conveyed to the client."
},
"INVALID_PIN": {
- "message": "Please enter a PIN consisting of four or more digits.",
+ "message": "Please enter a PIN consisting of six or more digits.",
"description": "An error message displayed if the user enters an invalid PIN while setting up a host."
},
"IT2ME_FIRST_RUN": {
diff --git a/remoting/webapp/host_setup_dialog.js b/remoting/webapp/host_setup_dialog.js
index c0e5ae2..8ba3be2 100644
--- a/remoting/webapp/host_setup_dialog.js
+++ b/remoting/webapp/host_setup_dialog.js
@@ -425,7 +425,7 @@ remoting.HostSetupDialog.prototype.prepareForPinEntry_ = function() {
* @return {boolean} Whether the PIN is valid.
*/
remoting.HostSetupDialog.validPin_ = function(pin) {
- if (pin.length < 4) {
+ if (pin.length < 6) {
return false;
}
for (var i = 0; i < pin.length; i++) {
diff --git a/remoting/webapp/main.html b/remoting/webapp/main.html
index a906565..00558245 100644
--- a/remoting/webapp/main.html
+++ b/remoting/webapp/main.html
@@ -221,7 +221,10 @@ found in the LICENSE file.
<form id="ask-pin-form"
data-ui-mode="home.host-setup.ask-pin"
action="">
- <p class="message" i18n-content="HOST_SETUP_DIALOG_DESCRIPTION"></p>
+ <p class="message"
+ i18n-content="HOST_SETUP_DIALOG_DESCRIPTION"
+ i18n-value-1="<b>"
+ i18n-value-2="</b>"></p>
<table id="set-pin-table">
<tr>
<td class="table-label">