File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class AdminForthAuth implements IAdminForthAuth {
4545 this . adminforth = adminforth ;
4646 }
4747
48- getClientIp ( headers : object ) {
48+ getClientIp ( headers : object ) {
4949 const clientIpHeader = this . adminforth . config . auth . clientIpHeader ;
5050
5151 const headersLower = Object . keys ( headers ) . reduce ( ( acc , key ) => {
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ class AdminForth implements IAdminForth {
5959 return await AdminForthAuth . generatePasswordHash ( password ) ;
6060 } ,
6161
62+ verifyPassword : async ( password , hash ) => {
63+ return await AdminForthAuth . verifyPassword ( password , hash ) ;
64+ } ,
65+
6266 applyRegexValidation ( value , validation ) {
6367 if ( validation ?. length ) {
6468 const validationArray = validation ;
You can’t perform that action at this time.
0 commit comments