mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 16:32:33 +08:00
refactor: 💡 rename error class
This commit is contained in:
parent
18a417addd
commit
687d506ca5
@ -1,4 +1,4 @@
|
|||||||
class MFAError {
|
class OpenIDrror {
|
||||||
message: string;
|
message: string;
|
||||||
|
|
||||||
constructor(message: string) {
|
constructor(message: string) {
|
||||||
@ -6,4 +6,4 @@ class MFAError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default MFAError;
|
export default OpenIDrror;
|
@ -3,7 +3,7 @@ import utils from "../utils.js";
|
|||||||
import dataEncryptionService from "./data_encryption.js";
|
import dataEncryptionService from "./data_encryption.js";
|
||||||
import sql from "../sql.js";
|
import sql from "../sql.js";
|
||||||
import sqlInit from "../sql_init.js";
|
import sqlInit from "../sql_init.js";
|
||||||
import OpenIDError from "../../errors/mfa_error.js";
|
import OpenIDError from "../../errors/open_id_error.js";
|
||||||
|
|
||||||
function saveUser(subjectIdentifier: string, name: string, email: string) {
|
function saveUser(subjectIdentifier: string, name: string, email: string) {
|
||||||
if (isUserSaved()) return false;
|
if (isUserSaved()) return false;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import OpenIDError from "../errors/mfa_error.js";
|
import OpenIDError from "../errors/open_id_error.js";
|
||||||
import type { NextFunction, Request, Response } from "express";
|
import type { NextFunction, Request, Response } from "express";
|
||||||
import openIDEncryption from "./encryption/open_id_encryption.js";
|
import openIDEncryption from "./encryption/open_id_encryption.js";
|
||||||
import sqlInit from "./sql_init.js";
|
import sqlInit from "./sql_init.js";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user