...
Warning |
---|
The overrides directory must match the path of the original file being overridden for EmpowerID to pick up your changes. For changes to .cshtml files, the overrides directory needs to be placed within the Web Sites folder. Once created, the path to the new directory should be |
To remove the My Last 10 Login Failures widget from the Home dashboard
From your EmpowerID Web server, navigate to \Program Files\TheDotNetFactory\EmpowerID\Web Sites and open a command window.
If the appropriate overrides directory does not exist, create it by running the below command.
Code Block language bash mkdir EmpowerID.Web.Overrides\Areas\Common\View\Dashboards
From the Web Sites folder, navigate to EmpowerID.Web.PortableAreas.Common\Views\Dashboards and copy Index.cshtml.
Paste Index.cshtml in the EmpowerID.Web.Overrides\Areas\Common\Views\Dashboards folder.
From the overrides directory, open Index.cshtml with any text editor.
In Index.cshtml, search for mylast10loginfailures.
Comment out the code, including the div tag above it (approximately lines 57 through 70).
Index.cshtml should look like the below image once you have commented out the code.Save your changes and close the file.
Reload the home dashboard.
You should see that the "My Last 10 Login Failures" widget no longer appears on the page.
...