Commit 000b9dbf authored by Liang Ding's avatar Liang Ding

Fixed #177

parent fb087c43
...@@ -41,7 +41,7 @@ import org.json.JSONObject; ...@@ -41,7 +41,7 @@ import org.json.JSONObject;
* User console request processing. * User console request processing.
* *
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a> * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.1, Aug 9, 2012 * @version 1.0.0.2, Jan 29, 2013
* @since 0.4.0 * @since 0.4.0
*/ */
@RequestProcessor @RequestProcessor
...@@ -335,7 +335,7 @@ public final class UserConsole { ...@@ -335,7 +335,7 @@ public final class UserConsole {
@RequestProcessing(value = "/console/user/*", method = HTTPRequestMethod.GET) @RequestProcessing(value = "/console/user/*", method = HTTPRequestMethod.GET)
public void getUser(final HttpServletRequest request, final HttpServletResponse response, final HTTPRequestContext context) public void getUser(final HttpServletRequest request, final HttpServletResponse response, final HTTPRequestContext context)
throws Exception { throws Exception {
if (!userUtils.isLoggedIn(request, response)) { if (!userUtils.isAdminLoggedIn(request)) {
response.sendError(HttpServletResponse.SC_FORBIDDEN); response.sendError(HttpServletResponse.SC_FORBIDDEN);
return; return;
} }
......
...@@ -69,7 +69,7 @@ import org.json.JSONObject; ...@@ -69,7 +69,7 @@ import org.json.JSONObject;
* Filler utilities. * Filler utilities.
* *
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a> * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.6.2, Jan 18, 2013 * @version 1.0.6.3, Jan 29, 2013
* @since 0.3.1 * @since 0.3.1
*/ */
public final class Filler { public final class Filler {
...@@ -506,6 +506,7 @@ public final class Filler { ...@@ -506,6 +506,7 @@ public final class Filler {
dataModel.put(User.USERS, userList); dataModel.put(User.USERS, userList);
for (final JSONObject user : userList) { for (final JSONObject user : userList) {
user.remove(User.USER_EMAIL); user.remove(User.USER_EMAIL);
user.remove(User.USER_PASSWORD);
} }
final String skinDirName = (String) request.getAttribute(Keys.TEMAPLTE_DIR_NAME); final String skinDirName = (String) request.getAttribute(Keys.TEMAPLTE_DIR_NAME);
......
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