CAT default password change

Modification operations

1, according to the following path, SessionManager open type, the cat-home directory: com.dianping.cat.system.page.login.service.SessionManager.java
2, 106 lines of code modification, ADMIN modify the password you want to .

case ADMIN_PWD:
final String p = CatPropertyProvider.INST.getProperty("CAT_ADMIN_PWD", "admin");

--------------------------------------------------------------------------------------
tokenCreator = new Function<Credential, Token>() { @Override public Token apply(Credential credential) { String account = credential.getAccount(); if ("admin".equals(account) && p.equals(credential.getPassword())) { return new Token(account, account); } return null; } }; break; }

 

Guess you like

Origin www.cnblogs.com/xiangsikai/p/12010944.html