File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
411411 globalInjections : this . adminforth . config . customization . globalInjections ,
412412 userFullnameField : this . adminforth . config . auth . userFullNameField ,
413413 settingPages : settingPages ,
414- defaultUserExists : defaultUserExists ,
415- isPrivateIP : isPrivateIP ,
414+ hasDefaultUserOnPublicNetwork : defaultUserExists && ! isPrivateIP
416415 }
417416
418417 // translate menu labels
Original file line number Diff line number Diff line change 5151 </div >
5252 </div >
5353
54- <div v-if =" coreStore.config.defaultUserExists && !coreStore.config.isPrivateIP " class =" p-4 mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm" >
54+ <div v-if =" coreStore.config.hasDefaultUserOnPublicNetwork " class =" p-4 mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm" >
5555 <IconExclamationCircleOutline class =" inline-block align-text-bottom mr-0,5 w-5 h-5" />
5656 Default user <strong >"adminforth"</strong > detected. Delete it and create your own account.
5757 </div >
You can’t perform that action at this time.
0 commit comments