mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
Chungus 2.0
This commit is contained in:
@@ -110,10 +110,12 @@ export async function requestTotpSecret(
|
||||
);
|
||||
}
|
||||
|
||||
const appName = process.env.BRANDING_APP_NAME || "Pangolin"; // From the private config loading into env vars to seperate away the private config
|
||||
|
||||
const hex = crypto.getRandomValues(new Uint8Array(20));
|
||||
const secret = encodeHex(hex);
|
||||
const uri = createTOTPKeyURI(
|
||||
config.getRawPrivateConfig().branding?.app_name || "Pangolin",
|
||||
appName,
|
||||
user.email!,
|
||||
hex
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user