We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47088cf commit 2d543f3Copy full SHA for 2d543f3
src/apps/app_sdk/auth.ts
@@ -8,9 +8,11 @@ export function BullAuthMiddleware() {
8
let password = process.env.WAHA_DASHBOARD_PASSWORD;
9
if (process.env.WAHA_DASHBOARD_ENABLED) {
10
const enabled = parseBool(process.env.WAHA_DASHBOARD_ENABLED);
11
- // Generate a random uuid4 username /password to prevent access
12
- username = 'admin';
13
- password = crypto.randomUUID();
+ if (!enabled) {
+ // Generate a random uuid4 username /password to prevent access
+ username = 'admin';
14
+ password = crypto.randomUUID();
15
+ }
16
}
17
18
return basicAuth({
0 commit comments