revert shiri.ini

if fromMessage.principal.equals("anonymous") then set user as null
This commit is contained in:
Prabhjyot Singh 2016-02-08 22:18:37 +05:30
parent fadc6d92ff
commit d928203cf6
2 changed files with 4 additions and 2 deletions

View file

@ -33,6 +33,6 @@ user2 = password3
# anon means the access is anonymous.
# authcBasic means Basic Auth Security
# To enfore security, comment the line below and uncomment the next one
#/** = anon
/** = authcBasic
/** = anon
#/** = authcBasic

View file

@ -691,6 +691,8 @@ public class NotebookServer extends WebSocketServlet implements
p.setTitle((String) fromMessage.get("title"));
if (!fromMessage.principal.equals("anonymous")) {
p.setUser(fromMessage.principal);
} else {
p.setUser(null);
}
Map<String, Object> params = (Map<String, Object>) fromMessage