1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 20:32:15 -05:00

[WO-573] Use pattern validation for token input

This commit is contained in:
Felix Hammerl 2014-09-15 15:25:26 +02:00
parent da246d4a03
commit f55c2c796f

View File

@ -8,7 +8,7 @@
<div class="step" ng-show="step === 1"> <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> <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" size="42" ng-model="recoveryToken" placeholder="Recovery token" focus-me="step === 1"> <input type="text" class="input-text" size="42" ng-model="recoveryToken" placeholder="Recovery token" focus-me="step === 1" pattern="^([a-z0-9]{6})$">
<fieldset> <fieldset>
<legend>Got USB?</legend> <legend>Got USB?</legend>