feat: reset password cli (#903)

* feat: add password reset cli

* feat: add homarr cli to docker image
This commit is contained in:
Meier Lukas authored and GitHub committed 2024-08-04 21:44:51 +02:00
1 parent ca1ecdf848
commit 7fa5e70d5b
16 files changed
+193 -7

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { randomBytes } from "crypto";
/**
* Generates a random hex token twice the size of the given size
* @param size amount of bytes to generate
* @returns a random hex token twice the length of the given size
*/
export const generateSecureRandomToken = (size: number) => {
return randomBytes(size).toString("hex");
};
+1
View File
@@ -0,0 +1 @@
export * from "./security";