Skip to content

Commit d5fd996

Browse files
authored
Merge pull request #22797 from abpframework/auto-merge/rel-9-2/3700
Merge branch dev with rel-9.2
2 parents f671053 + d78754b commit d5fd996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/en/framework/ui/mvc-razor-pages/customization-user-interface.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ This example overrides the **login page** defined by the [Account Module](../../
8989

9090
Create a page model class deriving from the ` LoginModel ` (defined in the ` Volo.Abp.Account.Web.Pages.Account ` namespace):
9191

92+
> If you are using the `AbpAccountWebOpenIddictModule` or `AbpAccountPublicWebOpenIddictModule`, the base class is `OpenIddictSupportedLoginModel` instead of `LoginModel`. And you should change the `ExposeServices` attribute to `[ExposeServices(typeof (MyLoginModel), typeof(OpenIddictSupportedLoginModel), typeof(LoginModel))]`
93+
9294
````csharp
95+
[ExposeServices(typeof (MyLoginModel), typeof(LoginModel))]
9396
public class MyLoginModel : LoginModel
9497
{
9598
public MyLoginModel(
@@ -114,8 +117,6 @@ public class MyLoginModel : LoginModel
114117

115118
You can override any method or add new properties/methods if needed.
116119

117-
> Notice that we didn't use `[Dependency(ReplaceServices = true)]` or `[ExposeServices(typeof(LoginModel))]` since we don't want to replace the existing class in the dependency injection, we define a new one.
118-
119120
Copy `Login.cshtml` file into your solution as just described above. Change the **@model** directive to point to the `MyLoginModel`:
120121

121122
````xml

0 commit comments

Comments
 (0)