Skip to content

Commit 131a1d1

Browse files
rh is added as a submodule for now
1 parent 8ac0405 commit 131a1d1

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "bare-as-module3"]
55
path = bare-as-module3
66
url = https://github.com/motortruck1221/bare-as-module3
7+
[submodule "rammerheadPackage"]
8+
path = rammerheadPackage
9+
url = https://github.com/Ruby-Network/rammerhead.git

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"chalk": "^5.3.0",
3333
"fastify": "^4.26.2",
3434
"progress-estimator": "^0.3.1",
35-
"rammerhead": "https://github.com/Ruby-Network/rammerhead/releases/download/v1.0.5/rammerhead-1.2.41-ruby.1.tgz",
3635
"sass": "^1.71.1",
3736
"terser": "^5.29.2",
3837
"typescript": "^5.4.2",
38+
"rammerhead": "file:./rammerheadPackage/",
3939
"wisp-server-node": "^1.0.2",
4040
"yaml": "^2.4.1"
4141
}

rammerheadPackage

Submodule rammerheadPackage added at ad99ef7

ruby/auth.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ def call(env)
2222
session[:uid] = SecureRandom.alphanumeric(2048)
2323
return [302, {'Location' => '/'}, []]
2424
end
25+
else
26+
if Settings.private == "false" && params['unlock'] == '' || params['unlock'] == 'unlock' || params['unlock'] == 'true' || params['unlock'] == ' '
27+
session[:auth] = true
28+
session[:uid] = SecureRandom.alphanumeric(2048)
29+
return [302, {'Location' => '/'}, []]
30+
end
2531
end
26-
else
32+
else
2733
if Settings.private == "false" && params['unlock'] == '' || params['unlock'] == 'unlock' || params['unlock'] == 'true' || params['unlock'] == ' '
2834
session[:auth] = true
2935
session[:uid] = SecureRandom.alphanumeric(2048)

0 commit comments

Comments
 (0)