@gbozee/ultimate 0.0.2-135 → 0.0.2-136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/mcp-server.cjs +8 -0
- package/dist/mcp-server.js +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51557,6 +51557,14 @@ class AppDatabase {
|
|
|
51557
51557
|
});
|
|
51558
51558
|
return user[0];
|
|
51559
51559
|
}
|
|
51560
|
+
async verifyUserPassword(password) {
|
|
51561
|
+
const user = await this.getUserByEmail();
|
|
51562
|
+
if (user) {
|
|
51563
|
+
const userPassword = decryptObject(user.settings.password, this.salt);
|
|
51564
|
+
return userPassword === password;
|
|
51565
|
+
}
|
|
51566
|
+
return false;
|
|
51567
|
+
}
|
|
51560
51568
|
async generateUserPassword() {
|
|
51561
51569
|
const user = await this.getUserByEmail();
|
|
51562
51570
|
if (user) {
|
package/dist/index.d.ts
CHANGED
|
@@ -547,6 +547,7 @@ export declare class AppDatabase {
|
|
|
547
547
|
salt?: string;
|
|
548
548
|
});
|
|
549
549
|
getUserByEmail(): Promise<import("pocketbase").RecordModel>;
|
|
550
|
+
verifyUserPassword(password: string): Promise<boolean>;
|
|
550
551
|
generateUserPassword(): Promise<void>;
|
|
551
552
|
getUserCredentials(): Promise<any>;
|
|
552
553
|
getCredentials(payload: {
|
package/dist/index.js
CHANGED
|
@@ -51505,6 +51505,14 @@ class AppDatabase {
|
|
|
51505
51505
|
});
|
|
51506
51506
|
return user[0];
|
|
51507
51507
|
}
|
|
51508
|
+
async verifyUserPassword(password) {
|
|
51509
|
+
const user = await this.getUserByEmail();
|
|
51510
|
+
if (user) {
|
|
51511
|
+
const userPassword = decryptObject(user.settings.password, this.salt);
|
|
51512
|
+
return userPassword === password;
|
|
51513
|
+
}
|
|
51514
|
+
return false;
|
|
51515
|
+
}
|
|
51508
51516
|
async generateUserPassword() {
|
|
51509
51517
|
const user = await this.getUserByEmail();
|
|
51510
51518
|
if (user) {
|
package/dist/mcp-server.cjs
CHANGED
|
@@ -58259,6 +58259,14 @@ class AppDatabase {
|
|
|
58259
58259
|
});
|
|
58260
58260
|
return user[0];
|
|
58261
58261
|
}
|
|
58262
|
+
async verifyUserPassword(password) {
|
|
58263
|
+
const user = await this.getUserByEmail();
|
|
58264
|
+
if (user) {
|
|
58265
|
+
const userPassword = decryptObject(user.settings.password, this.salt);
|
|
58266
|
+
return userPassword === password;
|
|
58267
|
+
}
|
|
58268
|
+
return false;
|
|
58269
|
+
}
|
|
58262
58270
|
async generateUserPassword() {
|
|
58263
58271
|
const user = await this.getUserByEmail();
|
|
58264
58272
|
if (user) {
|
package/dist/mcp-server.js
CHANGED
|
@@ -58236,6 +58236,14 @@ class AppDatabase {
|
|
|
58236
58236
|
});
|
|
58237
58237
|
return user[0];
|
|
58238
58238
|
}
|
|
58239
|
+
async verifyUserPassword(password) {
|
|
58240
|
+
const user = await this.getUserByEmail();
|
|
58241
|
+
if (user) {
|
|
58242
|
+
const userPassword = decryptObject(user.settings.password, this.salt);
|
|
58243
|
+
return userPassword === password;
|
|
58244
|
+
}
|
|
58245
|
+
return false;
|
|
58246
|
+
}
|
|
58239
58247
|
async generateUserPassword() {
|
|
58240
58248
|
const user = await this.getUserByEmail();
|
|
58241
58249
|
if (user) {
|