File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -382,16 +382,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
382382 if ( username === 'adminforth' ) {
383383 defaultUserExists = true ;
384384 }
385-
386- // getting client ip address (if null - ip definetely is private, if not null - check if it is private)
387- const clientIp = this . adminforth . auth . getClientIp ( response . getHeaders ?.( ) || { } ) ;
388- let isPrivateIP = true ;
389-
390- if ( clientIp ) {
391- // ip is not null, so we need to make sure that it is not private
392- isPrivateIP = is_ip_private ( clientIp ) ;
393- }
394-
385+
395386 const publicPart = {
396387 brandName : this . adminforth . config . customization . brandName ,
397388 usernameFieldName : usernameColumn . label ,
@@ -1593,4 +1584,4 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
15931584 } ) ;
15941585
15951586 }
1596- }
1587+ }
You can’t perform that action at this time.
0 commit comments