Fix some issues around validation in the config forms

This commit is contained in:
Joseph Schorr 2015-01-14 17:04:02 -05:00
parent 511c607bbb
commit cc453e7d10
4 changed files with 23 additions and 17 deletions

View file

@ -292,7 +292,9 @@
<div class="form-group">
<label>Password</label>
<input class="form-control" type="password" ng-model="superUser.password" required>
<input class="form-control" type="password" ng-model="superUser.password"
ng-pattern="/^[^\s]+$/"
ng-minlength="8" required>
</div>
<div class="form-group">
@ -302,6 +304,9 @@
</div>
</div>
<div class="modal-footer alert alert-warning" ng-show="createSuperuserIssue">
{{ createSuperuserIssue }}
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" ng-disabled="!superuserForm.$valid"
ng-show="configStep == 'create-superuser'">