File tree 5 files changed +15
-6
lines changed 5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change
1
+ Version 1.7.2, December 4th, 2016
2
+ ==================================
3
+
4
+ - Closes #183 (accessible document list)
5
+ - Closes #182 (case insensitive test on SHA-1 passwords)
6
+ - Reads Jingo version from packages.json (no manual edit for version bump)
7
+
1
8
Version 1.7.1, November 5th, 2016
2
9
==================================
3
10
Original file line number Diff line number Diff line change 4
4
* Jingo, wiki engine
5
5
* http://github.com/claudioc/jingo
6
6
*
7
- * Copyright 2015 Claudio Cicali <claudio.cicali@gmail.com>
7
+ * Copyright 2016 Claudio Cicali <claudio.cicali@gmail.com>
8
8
* Released under the MIT license
9
9
*/
10
10
var program = require ( 'commander' )
@@ -14,10 +14,11 @@ var http = require('http')
14
14
var fs = require ( 'fs' )
15
15
var os = require ( 'os' )
16
16
var semver = require ( 'semver' )
17
+ var pkg = require ( './package' )
17
18
18
19
global . Git = require ( './lib/gitmech' )
19
20
20
- program . version ( '1.7.1' )
21
+ program . version ( pkg . version )
21
22
. option ( '-c, --config <path>' , 'Specify the config file' )
22
23
. option ( '-#, --hash-string <string>' , 'Create an hash for a string' )
23
24
. option ( '-l, --local' , 'Listen on localhost only' )
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ module.exports.initialize = function (config) {
145
145
res . locals . _script = components . customScript ( )
146
146
147
147
if ( / ^ \/ a u t h \/ / . test ( req . url ) ||
148
- / ^ \/ m i s c \/ / . test ( req . url ) ||
149
- ( / ^ \/ l o g i n / . test ( req . url ) && ! config . get ( 'authorization' ) . anonRead )
148
+ / ^ \/ m i s c \/ / . test ( req . url ) ||
149
+ ( / ^ \/ l o g i n / . test ( req . url ) && ! config . get ( 'authorization' ) . anonRead )
150
150
) {
151
151
return next ( )
152
152
}
@@ -178,6 +178,7 @@ module.exports.initialize = function (config) {
178
178
app . all ( '/pages/*' , requireAuthentication )
179
179
180
180
if ( ! app . locals . config . get ( 'authorization' ) . anonRead ) {
181
+ app . all ( '/wiki' , requireAuthentication )
181
182
app . all ( '/wiki/*' , requireAuthentication )
182
183
app . all ( '/search' , requireAuthentication )
183
184
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jingo" ,
3
- "version" : " 1.7.1 " ,
3
+ "version" : " 1.7.2 " ,
4
4
"description" : " A nodejs based wiki engine" ,
5
5
"author" : " Claudio Cicali <claudio.cicali@gmail.com>" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ if (auth.local.enabled) {
131
131
132
132
var foundUser = _ . find ( auth . local . accounts , function ( account ) {
133
133
return account . username . toLowerCase ( ) === wantedUsername &&
134
- account . passwordHash === wantedPasswordHash
134
+ account . passwordHash . toLowerCase ( ) === wantedPasswordHash . toLowerCase ( )
135
135
} )
136
136
137
137
if ( ! foundUser ) {
You can’t perform that action at this time.
0 commit comments