Commit d354f85e authored by Liang Ding's avatar Liang Ding

💬 更新文案

parent 92eee899
......@@ -41,7 +41,7 @@ public class ConsoleAdminAuthAdvice extends ProcessAdvice {
public void doAdvice(final RequestContext context) throws RequestProcessAdviceException {
if (!Solos.isAdminLoggedIn(context)) {
final JSONObject exception401 = new JSONObject();
exception401.put(Keys.MSG, "Unauthorized to request [" + context.requestURI() + "]");
exception401.put(Keys.MSG, "Unauthorized to request [" + context.requestURI() + "], please signin using admin account");
exception401.put(Keys.STATUS_CODE, HttpServletResponse.SC_UNAUTHORIZED);
throw new RequestProcessAdviceException(exception401);
......
......@@ -44,7 +44,7 @@ public class ConsoleAuthAdvice extends ProcessAdvice {
final JSONObject currentUser = Solos.getCurrentUser(context.getRequest(), context.getResponse());
if (null == currentUser) {
final JSONObject exception401 = new JSONObject();
exception401.put(Keys.MSG, "Unauthorized to request [" + context.requestURI() + "]");
exception401.put(Keys.MSG, "Unauthorized to request [" + context.requestURI() + "], please signin");
exception401.put(Keys.STATUS_CODE, HttpServletResponse.SC_UNAUTHORIZED);
throw new RequestProcessAdviceException(exception401);
......
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