File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Use user privileges and require authorization for them</Description>
31
31
Allow accessing terminal for unregistered users (unknownUser).
32
32
Anyway, changing this constant to 1 can make a big hole in security,
33
33
so change it at your own risk!</Description >
34
- <Default >0 </Default >
34
+ <Default >1 </Default >
35
35
</Parameter >
36
36
37
37
<UDLText name =" T" >
@@ -771,18 +771,9 @@ the client - it includes authorization key.</Description>
771
771
ZNSPACE $LISTGET(lb, 7) // namespace
772
772
773
773
set user = $LISTGET($LISTGET(lb, 16), 1) // user
774
- if (user = "UnknownUser") && (..#allowUnknownUser '= 1) {
775
- set ok = 0
776
- do ..SendData("!UnknownUser disallowed.", ..ConstClientAuthorizationStatus)
777
- QUIT
778
- }
774
+ set loginStatus = ##class(%SYSTEM.Security).Login($LISTGET($LISTGET(lb, 16), 1)) // login user
779
775
780
- if (..#authorizeUsers = 1) {
781
- set loginStatus = ##class(%SYSTEM.Security).Login($LISTGET($LISTGET(lb, 16), 1))
782
- } else {
783
- set loginStatus = 1
784
- }
785
- if ($$$ISOK(loginStatus)) {
776
+ if ($$$ISOK(loginStatus)) { // alert client
786
777
do ..SendData(user,..ConstClientLoginInfo)
787
778
} else {
788
779
do ..SendData("!",..ConstClientLoginInfo)
Original file line number Diff line number Diff line change 6
6
*/
7
7
var application = new function() {
8
8
9
- var version = "0.9.9.6 beta"; // link to language.js
9
+ var version = "0.9.9.7 beta"; // link to language.js
10
10
this.debug = false; // remove for release
11
11
this.debugUrlPart = "172.27.25.133:57772"; // in-debug mode
12
12
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var lang = new function() {
29
29
0: parser.highlightHTML("/help"),
30
30
1: parser.highlightHTML("/tip"),
31
31
2: parser.highlightHTML("/connect"),
32
- 3: "0.9.9.6 beta",
32
+ 3: "0.9.9.7 beta",
33
33
4: 1,
34
34
5: parser.highlightHTML("set test = 12"),
35
35
6: parser.highlightHTML("write test"),
You can’t perform that action at this time.
0 commit comments