Commit 776a0a03 authored by Liang Ding's avatar Liang Ding

demo 屏蔽修改密码

parent df7b3299
......@@ -39,7 +39,7 @@ import org.json.JSONObject;
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:385321165@qq.com">DASHU</a>
* @version 1.0.0.5, May 16, 2013
* @version 1.0.0.6, May 27, 2013
* @since 0.4.0
*/
public final class UserMgmtService {
......@@ -111,9 +111,11 @@ public final class UserMgmtService {
final String newHashedPassword = MD5.hash(userPassword);
final String oldHashedPassword = oldUser.optString(User.USER_PASSWORD);
if (!"demo.b3log.org".equals(Latkes.getServerHost())) { // Skips the B3log Solo Online Demo (http://demo.b3log.org)
if (!mybeHashed || (!oldHashedPassword.equals(userPassword) && !oldHashedPassword.equals(newHashedPassword))) {
oldUser.put(User.USER_PASSWORD, newHashedPassword);
}
}
final String userRole = requestJSONObject.optString(User.USER_ROLE);
......
......@@ -16,7 +16,7 @@
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.8, Apr 1, 2013
# Version: 1.0.0.9, May 27, 2013
# Author: Liang Ding
#
......@@ -49,8 +49,8 @@ cache=BAE
userService=LOCAL
#### Cache ####
cache.maxPageCnt=128
cache.maxDataCnt=128
cache.maxPageCnt=0
cache.maxDataCnt=0
#### Static resource version ####
staticResourceVersion=201211021410
\ No newline at end of file
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