Issue Fixed: Now User cannot be created with single (or less than 6 ) character password.

Fixes #1386
This commit is contained in:
Harshal Dhumal 2016-06-21 09:20:21 +01:00 committed by Dave Page
parent eb5a97bc3c
commit 19b4f9e01f

View File

@ -210,7 +210,7 @@ define([
this.errorModel.set('newPassword', errmsg);
return errmsg;
} else if ('newPassword' in changedAttrs && !_.isUndefined(this.get('newPassword')) &&
} else if (!_.isUndefined(this.get('newPassword')) &&
!_.isNull(this.get('newPassword')) &&
this.get('newPassword').length < 6) {