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:
commit
7497268c7a
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user