Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 05c116e

Browse files
committed
remove unused functions
1 parent 9c4ff2d commit 05c116e

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
require('dotenv').config()
22

3-
function makeSecret(length) {
4-
let result = '';
5-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]\;\',./<>?:"{}|';
6-
const charactersLength = characters.length;
7-
for ( var i = 0; i < length; i++ ) {
8-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
9-
}
10-
return result;
11-
}
123

134
exports.groups_permitted = process.env.GROUPS_PERMITTED ? process.env.GROUPS_PERMITTED.split(',') : ['ACM Link Shortener Managers', 'ACM Exec', 'ACM Infra Leadership'];
145

index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,7 @@ app.engine('html', hogan);
4242

4343
// Create a session-store to be used by both the express-session
4444
// middleware and the keycloak middleware.
45-
function makeSecret() {
46-
const length = 64;
47-
let result = '';
48-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]\;\',./<>?:"{}|';
49-
const charactersLength = characters.length;
50-
for ( var i = 0; i < length; i++ ) {
51-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
52-
}
53-
return result;
54-
}
45+
5546
function getRandomURL() {
5647
const length = 6;
5748
let result = '';

0 commit comments

Comments
 (0)