主题 : jeecms 当密码输入错误时 出现英文提醒 请问怎么改成中文的呢? |
级别: 举人
![]() |
1# 发表于:2012-02-13 09:38:00 IP:116.70.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
7# 发表于:2012-05-09 16:50:18 IP:59.252.*.*
回复第5楼
修改com.jeecms.core.manager.impl.UnifiedUserMngImpl.java,可以去除英文提示 public UnifiedUser login(String username, String password, String ip) throws UsernameNotFoundException, BadCredentialsException { UnifiedUser user = getByUsername(username); if (user == null) { throw new UsernameNotFoundException("username not found: " + username); } if (!pwdEncoder.isPasswordValid(user.getPassword(), password)) { updateLoginError(user.getId(), ip); throw new BadCredentialsException("password invalid"); } if (!user.getActivation()) { throw new BadCredentialsException("account not activated"); } updateLoginSuccess(user.getId(), ip); return user; } |
||
---|---|---|---|
1
共1页