Update types
This commit is contained in:
parent
0690b5f081
commit
fabf2945d7
@ -5,7 +5,7 @@ const varDatabaseDbHandler = require("../engine/utils/varDatabaseDbHandler");
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {PackageUserLoginLocalBody} param0
|
* @param {import("../../package-shared/types").PackageUserLoginLocalBody} param0
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
async function loginLocalUser({
|
async function loginLocalUser({
|
||||||
|
@ -77,15 +77,6 @@ async function localSendEmailCode({
|
|||||||
msg: "No user found",
|
msg: "No user found",
|
||||||
};
|
};
|
||||||
|
|
||||||
function generateCode() {
|
|
||||||
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
|
||||||
let code = "";
|
|
||||||
for (let i = 0; i < 8; i++) {
|
|
||||||
code += chars[Math.floor(Math.random() * chars.length)];
|
|
||||||
}
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (foundUser && foundUser[0] && email_login_field) {
|
if (foundUser && foundUser[0] && email_login_field) {
|
||||||
const tempCode = generateCode();
|
const tempCode = generateCode();
|
||||||
|
|
||||||
@ -150,4 +141,13 @@ async function localSendEmailCode({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function generateCode() {
|
||||||
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
||||||
|
let code = "";
|
||||||
|
for (let i = 0; i < 8; i++) {
|
||||||
|
code += chars[Math.floor(Math.random() * chars.length)];
|
||||||
|
}
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = localSendEmailCode;
|
module.exports = localSendEmailCode;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "2.2.3",
|
"version": "2.2.6",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user