mirror of
https://github.com/louislam/dockge.git
synced 2026-05-21 14:02:17 +00:00
Check TypeScript for backend (#64)
* Check Typescript * Fix backend typescript issues * Update
This commit is contained in:
@@ -17,7 +17,7 @@ export function generatePasswordHash(password : string) {
|
||||
* @param {string} hash Hash to verify against
|
||||
* @returns {boolean} Does the password match the hash?
|
||||
*/
|
||||
export function verifyPassword(password, hash) {
|
||||
export function verifyPassword(password : string, hash : string) {
|
||||
return bcrypt.compareSync(password, hash);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export const SHAKE256_LENGTH = 16;
|
||||
* @param {number} len Output length of the hash
|
||||
* @returns {string} The hashed data in hex format
|
||||
*/
|
||||
export function shake256(data, len) {
|
||||
export function shake256(data : string, len : number) {
|
||||
if (!data) {
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user