No Validations for username and password length while creating user

Closes #3136
This commit is contained in:
nnatarajan 2020-07-21 22:49:51 -07:00 committed by Natasha Natarajan
parent 6c1e65c2c4
commit 1f780c43b8
2 changed files with 16 additions and 4 deletions

View File

@ -348,6 +348,8 @@
"label.savesuccessfully": "Saved Successfully",
"label.nodatafound": "No data was found related to the search parameters entered.",
"label.mustbenumeric": "Must be numeric",
"label.usernameminfivechars": "Username must be at least five characters long.",
"label.passwordminsixchars": "Password must be at least six characters long.",
"label.percentage": "Percentage",
"label.outstanding.amount": "Loan outstanding amount",
"label.and": "and",

View File

@ -13,9 +13,14 @@
class="required">*</span></label>
<div class="col-sm-3">
<input type="text" id="username" name="username" ng-model="formData.username" class="form-control" required late-Validate/>
<input type="text" minlength="5" id="username" name="username" ng-model="formData.username" class="form-control" required late-Validate/>
</div>
<div class="col-sm-3">
<span ng-show="createuserform.username.$invalid">
<small class="error required">
{{'label.usernameminfivechars' | translate}}
</small>
</span>
<form-validate valattributeform="createuserform" valattribute="username"/>
</div>
</div>
@ -106,11 +111,16 @@
class="required">*</span></label>
<div class="col-sm-3">
<input type="password" id="password" name="password" ng-model="formData.password" class="form-control" required
late-Validate>
<input type="password" minlength="6" id="password" name="password" ng-model="formData.password" class="form-control" required
late-Validate>
</div>
<div class="col-sm-3">
<form-validate valattributeform="createuserform" valattribute="password"/>
<span ng-show="createuserform.password.$invalid">
<small class="error required">
{{'label.passwordminsixchars' | translate}}
</small>
</span>
<form-validate valattributeform="createuserform" valattribute="password"/>
</div>
</div>
<div class="form-group">