strong pwd

This commit is contained in:
RB 2022-06-27 11:51:57 +08:00
parent 4b51d4150b
commit ac9129c036
4 changed files with 4 additions and 4 deletions

2
@rbv

@ -1 +1 @@
Subproject commit 064e2d95400e2491eeca0e5d7bd1816da904be32
Subproject commit 277f6eb150627c53654dd02238870b7e138c2f53

View file

@ -408,7 +408,7 @@ public class UserService extends BaseService {
*/
public ID txSignUp(Record record) throws DataSpecificationException {
if (!record.hasValue("password")) {
record.setString("password", CodecUtils.randomCode(8) + "!8");
record.setString("password", CodecUtils.randomCode(6) + "Rb!8");
}
if (!record.hasValue("isDisabled")) {
record.setBoolean("isDisabled", Boolean.TRUE);

View file

@ -99,7 +99,7 @@ public class SignUpController extends BaseController {
String loginName = data.getString("loginName");
String fullName = data.getString("fullName");
String passwd = CodecUtils.randomCode(8) + "!8";
String passwd = CodecUtils.randomCode(6) + "Rb!8";
Record userNew = EntityHelper.forNew(EntityHelper.User, UserService.SYSTEM_USER);
userNew.setString("email", email);

View file

@ -45,7 +45,7 @@ $(document).ready(function () {
$('.J_enable').click(() => toggleDisabled(false))
$('.J_resetpwd').click(() => {
const newpwd = $random(null, true, 8) + '!8'
const newpwd = $random(null, true, 6) + 'Rb!8'
RbAlert.create(WrapHtml($L('密码将重置为 **%s** 是否确认', newpwd)), {
confirm: function () {
this.disabled(true)