How to Disable Self Registration

|
Published

The below notes are valid for EUM 4.1 onwards

In Identityserver/Views/Account/Register.cshtml

  1. Comment out codes within the the <div class="eum-form"> </div> (possibly line 20 to 46)
  2. Comment out the below:
@Html.Partial("_RegistrationConfirmation")
<div class="eum-form">
    <input type="submit" id="Register" class="btn btn-primary btn-block btn-eum" value="Register" disabled tabindex="1" />
</div>
  1. After the line mentioned in point 2, may be write a message within a new div "Could not log you in. Please contact the system admin"
  2. Within @section scripts{}, comment
   <script src="~/eum/js/eum.js" asp-append-version="true"></script>
   <script src="~/eum/js/register.js" asp-append-version="true"></script>

In Extarnet_API_V4/web.config

Change <add key="Registration_Default_UserStatus_FK" value="1" /> value to 2 (2 means deactivated)

In Landing/Views/Shared/_Header.cshtml

Delete Register from

<a id="EUMHeaderSignInLink" class="nav-item nav-link" href="~/authenticate" runat="server">Register / Sign In</a>

(possibly Line 36) to make it

<a id="EUMHeaderSignInLink" class="nav-item nav-link" href="~/authenticate" runat="server">Sign In</a>