diff --git a/MyApp/Configure.Auth.cs b/MyApp/Configure.Auth.cs index c033606..1cf8a63 100644 --- a/MyApp/Configure.Auth.cs +++ b/MyApp/Configure.Auth.cs @@ -2,6 +2,7 @@ using MyApp.Data; using MyApp.ServiceModel; using ServiceStack.Data; +using ServiceStack.Html; using ServiceStack.OrmLite; [assembly: HostingStartup(typeof(MyApp.ConfigureAuth))] @@ -18,6 +19,20 @@ public void Configure(IWebHostBuilder builder) => builder options.CredentialsAuth(); options.AdminUsersFeature(feature => { + feature.FormLayout = + [ + Input.For(x => x.UserName, c => c.FieldsPerRow(2)), + Input.For(x => x.Email, c => { + c.Type = Input.Types.Email; + c.FieldsPerRow(2); + }), + Input.For(x => x.Model, c => + { + c.FieldsPerRow(2); + }), + Input.For(x => x.ProfilePath) + ]; + feature.OnBeforeDeleteUser = async (req, userId) => { var dbFactory = req.TryResolve();