mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 15:35:55 +08:00
strong pwd
This commit is contained in:
parent
4b51d4150b
commit
ac9129c036
2
@rbv
2
@rbv
|
@ -1 +1 @@
|
|||
Subproject commit 064e2d95400e2491eeca0e5d7bd1816da904be32
|
||||
Subproject commit 277f6eb150627c53654dd02238870b7e138c2f53
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue