Commit 4a2ad2a1 authored by renjie's avatar renjie

Merge branch 'master' into 'dev-zrj'

# Conflicts:
#   src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
parents a569639b 58bd9f86
...@@ -414,7 +414,9 @@ public class AccountServiceImpl implements AccountService { ...@@ -414,7 +414,9 @@ public class AccountServiceImpl implements AccountService {
resultDto.setStatus(0); resultDto.setStatus(0);
resultDto.setData(current); resultDto.setData(current);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e);
log.error("eeee", e);
resultDto.setStatus(-1); resultDto.setStatus(-1);
Map<String, Object> statusInfo = new HashMap<>(); Map<String, Object> statusInfo = new HashMap<>();
statusInfo.put("code", AccountErrorCode.NAMENOTEXIST); statusInfo.put("code", AccountErrorCode.NAMENOTEXIST);
...@@ -718,7 +720,7 @@ public class AccountServiceImpl implements AccountService { ...@@ -718,7 +720,7 @@ public class AccountServiceImpl implements AccountService {
} }
public static String makeRandomPassword(int len) { public static String makeRandomPassword(int len) {
char charr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".toCharArray(); char charr[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@$%^&*.?".toCharArray();
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
Random r = new Random(); Random r = new Random();
for (int x = 0; x < len; ++x) { for (int x = 0; x < len; ++x) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment