Identity Server v3 Custom Page Reset Password

前端 未结 1 1887
陌清茗
陌清茗 2020-12-06 20:10

I want to make on login page a URL that will redirect to http://server/resetpassword/ and there will be my cusotm page, made CustomViewServices from samples, but there is no

1条回答
  •  离开以前
    2020-12-06 20:51

    It's not necessary to create a CustomViewService, you can deal with this scenario adding the following code in your AuthenticationOptions (in your startup class)

    LoginPageLinks = new List()
                    {
                       new LoginPageLink()
                       {
                           Href = "resetpassword",
                           Text = "Reset Your Password",
                           Type = "resetPassword"
                       }
                    }
    

    in the logging page, there is the following code,

     
    

    More info here

    So using this customisation in your AuthenticationOptions, this will add a link to your custom page.

    Then you need to add a resetpassword.html page in your the template folder.

    0 讨论(0)
提交回复
热议问题