1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 17:02:17 -05:00

Allow only 6 chars in recovery token ui

This commit is contained in:
Tankred Hase 2014-09-17 16:30:00 +02:00
commit 7497268c7a
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ define(function(require) {
keychain.downloadPrivateKey({
userId: userId,
keyId: keypair.publicKey._id,
recoveryToken: $scope.recoveryToken
recoveryToken: $scope.recoveryToken.toLowerCase()
}, function(err, encryptedPrivateKey) {
if (err) {
$scope.onError(err);

View File

@ -8,7 +8,7 @@
<div class="step" ng-show="step === 1">
<p><b>Key sync.</b> We have sent you an email containing a recovery token. Please copy and paste the token below to download your key.</p>
<input type="text" class="input-text token" size="6" maxlength="6" ng-model="recoveryToken" placeholder="Token" focus-me="step === 1">
<input type="text" class="input-text token" size="6" maxlength="6" ng-model="recoveryToken" placeholder="Token" focus-me="step === 1" pattern="([a-zA-Z0-9]*)">
<fieldset>
<legend>Got USB?</legend>