We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295b02f commit 336333fCopy full SHA for 336333f
2 files changed
adminforth/auth.ts
@@ -45,7 +45,7 @@ class AdminForthAuth implements IAdminForthAuth {
45
this.adminforth = adminforth;
46
}
47
48
-getClientIp(headers: object) {
+ getClientIp(headers: object) {
49
const clientIpHeader = this.adminforth.config.auth.clientIpHeader;
50
51
const headersLower = Object.keys(headers).reduce((acc, key) => {
adminforth/index.ts
@@ -59,6 +59,10 @@ class AdminForth implements IAdminForth {
59
return await AdminForthAuth.generatePasswordHash(password);
60
},
61
62
+ verifyPassword: async (password, hash) => {
63
+ return await AdminForthAuth.verifyPassword(password, hash);
64
+ },
65
+
66
applyRegexValidation(value, validation) {
67
if (validation?.length) {
68
const validationArray = validation;
0 commit comments