Scriban Problemi ve User Details

This commit is contained in:
Sedat Öztürk 2026-06-04 00:38:21 +03:00
parent 921c3c6d35
commit 197c4e0741
11 changed files with 272 additions and 141 deletions

View file

@ -19,6 +19,7 @@
<ItemGroup>
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>
</Project>

View file

@ -14,6 +14,7 @@
</PackageReference>
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>

View file

@ -30,6 +30,7 @@
<PackageReference Include="Volo.Abp.TextTemplating.Razor" Version="10.0.0" />
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>
<ItemGroup>

View file

@ -14,6 +14,7 @@
</PackageReference>
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>

View file

@ -14,6 +14,7 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>
</Project>

View file

@ -14,6 +14,7 @@
</PackageReference>
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>

View file

@ -14,6 +14,7 @@
</PackageReference>
<PackageReference Include="MailKit" Version="4.16.0" />
<PackageReference Include="MimeKit" Version="4.16.0" />
<PackageReference Include="Scriban" Version="7.2.3" />
</ItemGroup>

View file

@ -574,6 +574,22 @@
"selectOptions": {},
"order": 27
},
{
"code": "Abp.Mailing.Smtp.UseDefaultCredentials",
"nameKey": "Abp.Mailing.Smtp.UseDefaultCredentials",
"descriptionKey": "Abp.Mailing.Smtp.UseDefaultCredentials.Description",
"defaultValue": "True",
"isVisibleToClients": true,
"providers": "T|G|D",
"isInherited": true,
"isEncrypted": false,
"mainGroupKey": "Abp.Mailing",
"subGroupKey": "Abp.Mailing.Smtp",
"requiredPermissionName": "Abp.Mailing.Smtp",
"dataType": "Bool",
"selectOptions": {},
"order": 28
},
{
"code": "Abp.Mailing.AWS.Profile",
"nameKey": "Abp.Mailing.AWS.Profile",
@ -588,7 +604,7 @@
"requiredPermissionName": "Abp.Mailing.AWS",
"dataType": "Text",
"selectOptions": {},
"order": 28
"order": 29
},
{
"code": "Abp.Mailing.AWS.Region",
@ -604,7 +620,7 @@
"requiredPermissionName": "Abp.Mailing.AWS",
"dataType": "Text",
"selectOptions": {},
"order": 29
"order": 30
},
{
"code": "Abp.Mailing.AWS.AccessKey",
@ -620,7 +636,7 @@
"requiredPermissionName": "Abp.Mailing.AWS",
"dataType": "Text",
"selectOptions": {},
"order": 30
"order": 31
},
{
"code": "Abp.Mailing.AWS.AccessKeyId",
@ -636,7 +652,7 @@
"requiredPermissionName": "Abp.Mailing.AWS",
"dataType": "Text",
"selectOptions": {},
"order": 31
"order": 32
},
{
"code": "Abp.Account.IsSelfRegistrationEnabled",
@ -674,8 +690,8 @@
"code": "Abp.Account.TwoFactor.Enabled",
"nameKey": "Abp.Account.TwoFactor.Enabled",
"descriptionKey": "Abp.Account.TwoFactor.Enabled.Description",
"defaultValue": "True",
"isVisibleToClients": false,
"defaultValue": "False",
"isVisibleToClients": true,
"providers": "T|G|D",
"isInherited": false,
"isEncrypted": false,
@ -750,6 +766,22 @@
"selectOptions": {},
"order": 46
},
{
"code": "Abp.Identity.OrganizationUnit.MaxUserMembershipCount",
"nameKey": "Abp.Identity.OrganizationUnit.MaxUserMembershipCount",
"descriptionKey": "Abp.Identity.OrganizationUnit.MaxUserMembershipCount.Description",
"defaultValue": "2147483647",
"isVisibleToClients": true,
"providers": "T|G|D",
"isInherited": true,
"isEncrypted": false,
"mainGroupKey": "Abp.Identity",
"subGroupKey": "Abp.Identity.OrganizationUnit",
"requiredPermissionName": "Abp.Identity.OrganizationUnits",
"dataType": "Number",
"selectOptions": {},
"order": 49
},
{
"code": "Abp.Identity.Profile.General.RequireVerifiedAccount",
"nameKey": "Abp.Identity.Profile.General.RequireVerifiedAccount",
@ -963,7 +995,7 @@
"nameKey": "Abp.Identity.SignIn.RequireConfirmedEmail",
"descriptionKey": "Abp.Identity.SignIn.RequireConfirmedEmail.Description",
"defaultValue": "True",
"isVisibleToClients": false,
"isVisibleToClients": true,
"providers": "G|D",
"isInherited": false,
"isEncrypted": false,
@ -979,7 +1011,7 @@
"nameKey": "Abp.Identity.SignIn.RequireConfirmedPhoneNumber",
"descriptionKey": "Abp.Identity.SignIn.RequireConfirmedPhoneNumber.Description",
"defaultValue": "False",
"isVisibleToClients": false,
"isVisibleToClients": true,
"providers": "G|D",
"isInherited": false,
"isEncrypted": false,
@ -990,6 +1022,38 @@
"selectOptions": {},
"order": 64
},
{
"code": "Abp.Identity.SignIn.EnablePhoneNumberConfirmation",
"nameKey": "Abp.Identity.SignIn.EnablePhoneNumberConfirmation",
"descriptionKey": "Abp.Identity.SignIn.EnablePhoneNumberConfirmation.Description",
"defaultValue": "True",
"isVisibleToClients": true,
"providers": "G|D",
"isInherited": true,
"isEncrypted": false,
"mainGroupKey": "Abp.Identity",
"subGroupKey": "Abp.Identity.SignIn",
"requiredPermissionName": "Abp.Identity.SignIn",
"dataType": "Bool",
"selectOptions": {},
"order": 65
},
{
"code": "Abp.Identity.SignIn.RequireEmailVerificationToRegister",
"nameKey": "Abp.Identity.SignIn.RequireEmailVerificationToRegister",
"descriptionKey": "Abp.Identity.SignIn.RequireEmailVerificationToRegister.Description",
"defaultValue": "True",
"isVisibleToClients": true,
"providers": "G|D",
"isInherited": true,
"isEncrypted": false,
"mainGroupKey": "Abp.Identity",
"subGroupKey": "Abp.Identity.SignIn",
"requiredPermissionName": "Abp.Identity.SignIn",
"dataType": "Bool",
"selectOptions": {},
"order": 66
},
{
"code": "Abp.Identity.User.IsUserNameUpdateEnabled",
"nameKey": "Abp.Identity.User.IsUserNameUpdateEnabled",
@ -1004,7 +1068,7 @@
"requiredPermissionName": "Abp.Identity.User",
"dataType": "Bool",
"selectOptions": {},
"order": 65
"order": 67
},
{
"code": "Abp.Identity.User.IsEmailUpdateEnabled",
@ -1020,7 +1084,7 @@
"requiredPermissionName": "Abp.Identity.User",
"dataType": "Bool",
"selectOptions": {},
"order": 66
"order": 68
}
],
"NotificationTypes": [],

View file

@ -1929,8 +1929,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.Url.Description",
"en": "Url Description",
"tr": "Url Açıklaması"
"en": "Posta Güvercini URL is usually in the format: http://api.postaguvercini.com/v1/sms/send?username={username}&password={password}&to={to}&message={message}",
"tr": "Posta Güvercini URL'si genellikle şu formatta olur: http://api.postaguvercini.com/v1/sms/send?username={username}&password={password}&to={to}&message={message}"
},
{
"resourceName": "Platform",
@ -1941,8 +1941,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.Sms.PostaGuvercini.Username.Description",
"en": "User Name Description",
"tr": "Kullanıcı Adııklaması"
"en": "The user name for the Posta Güvercini service.",
"tr": "Posta Güvercini hizmeti için kullanıcı adı."
},
{
"resourceName": "Platform",
@ -1953,8 +1953,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.Sms.PostaGuvercini.Password.Description",
"en": "Password Description",
"tr": "Parola Açıklaması"
"en": "The password for the Posta Güvercini service.",
"tr": "Posta Güvercini hizmeti için parola."
},
{
"resourceName": "Platform",
@ -1977,8 +1977,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.WhatsApp.PhoneNumberId.Description",
"en": "PhoneNumberId Description",
"tr": "PhoneNumberId Description"
"en": "The phone number ID for the WhatsApp service.",
"tr": "WhatsApp hizmeti için telefon numarası ID'si."
},
{
"resourceName": "Platform",
@ -1989,8 +1989,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.WhatsApp.TemplateName.Description",
"en": "Template Name Description",
"tr": "Şablon Adııklaması"
"en": "The name of the template for the WhatsApp service.",
"tr": "WhatsApp hizmeti için şablon adı."
},
{
"resourceName": "Platform",
@ -2001,8 +2001,8 @@
{
"resourceName": "Platform",
"key": "App.Sender.WhatsApp.Token.Description",
"en": "Token Description",
"tr": "Token Açıklaması"
"en": "The token for the WhatsApp service.",
"tr": "WhatsApp hizmeti için token."
},
{
"resourceName": "Platform",
@ -2025,20 +2025,14 @@
{
"resourceName": "Platform",
"key": "App.Sender.Rocket.UserId.Description",
"en": "User Id Description",
"tr": "User Id Açıklaması"
},
{
"resourceName": "Platform",
"key": "App.Sender.Rocket.Token",
"en": "Token",
"tr": "Token"
"en": "The user ID for the Rocket Chat service.",
"tr": "Rocket Chat hizmeti için kullanıcı ID'si."
},
{
"resourceName": "Platform",
"key": "App.Sender.Rocket.Token.Description",
"en": "Token Description",
"tr": "Token Açıklaması"
"en": "The token for the Rocket Chat service.",
"tr": "Rocket Chat hizmeti için token."
},
{
"resourceName": "Platform",
@ -2061,8 +2055,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.DefaultFromDisplayName.Description",
"en": "From Display Name Description",
"tr": "Varsayılan İsim Açıklaması"
"en": "Default name to be shown when sending mails. Usually it is company name or application name.",
"tr": "Mail gönderilirken görünecek varsayılan isim. Genellikle şirket adı veya uygulama adı olur."
},
{
"resourceName": "Platform",
@ -2073,8 +2067,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.DefaultFromAddress.Description",
"en": "From Address Description",
"tr": "Varsayılan Email Adresi Açıklaması"
"en": "Default email address to be shown when sending mails. Usually it is company email or application email.",
"tr": "Mail gönderilirken görünecek varsayılan email adresi. Genellikle şirket emaili veya uygulama emaili olur."
},
{
"resourceName": "Platform",
@ -2091,8 +2085,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.Host.Description",
"en": "Host Description",
"tr": "Host Açıklaması"
"en": "The host address of the SMTP server.",
"tr": "SMTP sunucusunun ana bilgisayar adresi."
},
{
"resourceName": "Platform",
@ -2103,8 +2097,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.Port.Description",
"en": "Port Description",
"tr": "Port Açıklaması"
"en": "The port number of the SMTP server.",
"tr": "SMTP sunucusunun port numarası."
},
{
"resourceName": "Platform",
@ -2115,8 +2109,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.UserName.Description",
"en": "User Name Description",
"tr": "Kullanıcı Adııklaması"
"en": "The user name for the SMTP server.",
"tr": "SMTP sunucusu için kullanıcı adı."
},
{
"resourceName": "Platform",
@ -2127,8 +2121,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.Password.Description",
"en": "Password Description",
"tr": "Parola Açıklaması"
"en": "The password for the SMTP server.",
"tr": "SMTP sunucusu için parola."
},
{
"resourceName": "Platform",
@ -2139,8 +2133,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.Domain.Description",
"en": "Domain Description",
"tr": "Alan Adııklaması"
"en": "The domain for the SMTP server.",
"tr": "SMTP sunucusu için alan adı."
},
{
"resourceName": "Platform",
@ -2151,8 +2145,32 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.EnableSsl.Description",
"en": "Enable Ssl Description",
"tr": "Ssl Etkinleştir Açıklaması"
"en": "Whether to enable SSL for the SMTP server.",
"tr": "SMTP sunucusu için SSL etkinleştirilip etkinleştirilmeyeceğini belirtir."
},
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.UseDefaultCredentials",
"en": "Use Default Credentials",
"tr": "Varsayılan Kimlik Bilgilerini Kullan"
},
{
"resourceName": "Platform",
"key": "Abp.Mailing.Smtp.UseDefaultCredentials.Description",
"en": "Use Default Credentials Description",
"tr": "Varsayılan Kimlik Bilgilerini Kullan Açıklaması"
},
{
"resourceName": "Platform",
"key": "Abp.Identity.OrganizationUnit.MaxUserMembershipCount",
"en": "Max User Membership Count",
"tr": "Maksimum Kullanıcı Üyelik Sayısı"
},
{
"resourceName": "Platform",
"key": "Abp.Identity.OrganizationUnit.MaxUserMembershipCount.Description",
"en": "Maximum number of users that can be members of each organization unit. 0 means unlimited.",
"tr": "Her bir organizasyon biriminin sahip olabileceği maksimum kullanıcı sayısı. 0 means unlimited."
},
{
"resourceName": "Platform",
@ -2169,8 +2187,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.AWS.Profile.Description",
"en": "Profile Description",
"tr": "Profil Açıklaması"
"en": "The profile for the AWS SES service.",
"tr": "AWS SES hizmeti için profil."
},
{
"resourceName": "Platform",
@ -2181,8 +2199,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.AWS.Region.Description",
"en": "Region Description",
"tr": "Bölge Açıklaması"
"en": "The region of the AWS SES service.",
"tr": "AWS SES hizmetinin bölgesi."
},
{
"resourceName": "Platform",
@ -2193,8 +2211,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.AWS.AccessKey.Description",
"en": "Access Key Description",
"tr": "Erişim Anahtarııklaması"
"en": "The access key for the AWS SES service.",
"tr": "AWS SES hizmeti için erişim anahtarı."
},
{
"resourceName": "Platform",
@ -2205,8 +2223,8 @@
{
"resourceName": "Platform",
"key": "Abp.Mailing.AWS.AccessKeyId.Description",
"en": "Access KeyId Description",
"tr": "Erişim Anahtarı Kimliği Açıklaması"
"en": "The access key ID for the AWS SES service.",
"tr": "AWS SES hizmeti için erişim anahtarı kimliği."
},
{
"resourceName": "Platform",
@ -2229,8 +2247,8 @@
{
"resourceName": "Platform",
"key": "App.SiteManagement.Theme.Style.Description",
"en": "Style Description",
"tr": "Stil Açıklaması"
"en": "The style for the site theme.",
"tr": "Site temasi için stil."
},
{
"resourceName": "Platform",
@ -2247,8 +2265,8 @@
{
"resourceName": "Platform",
"key": "App.SiteManagement.General.NewMemberNotificationEmails.Description",
"en": "New Member Notification Emails Description",
"tr": "Yeni Üye Bildirim Mailleri Açıklaması"
"en": "The emails sent to new members.",
"tr": "Yeni üelere gönderilen mailler."
},
{
"resourceName": "Platform",
@ -2259,8 +2277,8 @@
{
"resourceName": "Platform",
"key": "App.SiteManagement.General.TimedLoginEmails.Description",
"en": "Timed Login Emails Description",
"tr": "Süreli Giriş Mailleri Açıklaması"
"en": "The emails sent for timed login notifications.",
"tr": "Süreli giriş bildirimleri için gönderilen mailler."
},
{
"resourceName": "Platform",
@ -2277,8 +2295,8 @@
{
"resourceName": "Platform",
"key": "Abp.Localization.DefaultLanguage.Description",
"en": "Default Language Description",
"tr": "Varsayılan Dil Açıklaması"
"en": "Default language of the application. It is used as a fallback when a translation for the current language is not found.",
"tr": "Uygulamanın varsayılan dili. Geçerli dil için bir çeviri bulunamadığında yedek olarak kullanılır."
},
{
"resourceName": "Platform",
@ -2295,8 +2313,8 @@
{
"resourceName": "Platform",
"key": "Abp.Localization.Timezone.Description",
"en": "Timezone Description",
"tr": "Saat Dilimi Açıklaması"
"en": "Default timezone of the application. Users' timezones are adjusted according to this value.",
"tr": "Uygulamanın varsayılan saat dilimi. Kullanıcıların saat dilimleri bu değere göre ayarlanır."
},
{
"resourceName": "Platform",
@ -2319,8 +2337,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.EnableLocalLogin.Description",
"en": "Authenticate with a local account Description",
"tr": "Yerel bir hesapla kimlik doğrulama açıklaması"
"en": "Enables the local login option on the login page.",
"tr": "Login sayfasında yerel giriş seçeneğini etkinleştirir."
},
{
"resourceName": "Platform",
@ -2331,8 +2349,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.IsSelfRegistrationEnabled.Description",
"en": "Enable self registration Description",
"tr": "Kendi kendine kaydı etkinleştir Açıklaması"
"en": "Enables the self-registration option on the login page.",
"tr": "Login sayfasında kendi kendine kaydolma seçeneğini etkinleştirir."
},
{
"resourceName": "Platform",
@ -2457,8 +2475,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.Captcha.MaxFailedAccessAttempts.Description",
"en": "Max failed show Captcha Description",
"tr": "Kaç başarısız girişte gösterilecek Açıklaması"
"en": "The number of failed login attempts after which the CAPTCHA will be displayed.",
"tr": "CAPTCHA'nın gösterileceği başarısız giriş denemesi sayısı."
},
{
"resourceName": "Platform",
@ -2469,8 +2487,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.Captcha.EndPoint.Description",
"en": "End Point URL Description",
"tr": "Doğrulama Servis URL Açıklaması"
"en": "The URL of the CAPTCHA verification endpoint.",
"tr": "CAPTCHA doğrulama uç noktasının URL'si."
},
{
"resourceName": "Platform",
@ -2481,8 +2499,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.Captcha.SiteKey.Description",
"en": "Site Key Description",
"tr": "Site Anahtarııklaması"
"en": "The site key for the CAPTCHA service.",
"tr": "CAPTCHA hizmeti için site anahtarı."
},
{
"resourceName": "Platform",
@ -2493,8 +2511,8 @@
{
"resourceName": "Platform",
"key": "Abp.Account.Captcha.SecretKey.Description",
"en": "Private Key Description",
"tr": "Özel Anahtarııklaması"
"en": "The private key for the CAPTCHA service.",
"tr": "CAPTCHA hizmeti için özel anahtarı."
},
{
"resourceName": "Platform",
@ -2820,6 +2838,30 @@
"en": "Whether a confirmed telephone number is required to sign in.",
"tr": "Oturum açmak için onaylanmış bir telefon numarasının gerekip gerekmediği."
},
{
"resourceName": "Platform",
"key": "Abp.Identity.SignIn.EnablePhoneNumberConfirmation",
"en": "Enable Phone Number Confirmation",
"tr": "Telefon Numarası Onayını Etkinleştir"
},
{
"resourceName": "Platform",
"key": "Abp.Identity.SignIn.EnablePhoneNumberConfirmation.Description",
"en": "Whether to enable phone number confirmation during sign in.",
"tr": "Oturum açarken telefon numarası onayının etkinleştirilip etkinleştirilmeyeceği."
},
{
"resourceName": "Platform",
"key": "Abp.Identity.SignIn.RequireEmailVerificationToRegister",
"en": "Require Email Verification to Register",
"tr": "Kayıt Olmak için E-posta Doğrulaması Gerektir"
},
{
"resourceName": "Platform",
"key": "Abp.Identity.SignIn.RequireEmailVerificationToRegister.Description",
"en": "Whether to require email verification to register.",
"tr": "Kayıt olmak için e-posta doğrulaması gerekip gerekmediği."
},
{
"resourceName": "Platform",
"key": "Abp.Identity.User",
@ -3315,14 +3357,14 @@
{
"resourceName": "Platform",
"key": "Abp.Identity.Profile.General.RequireVerifiedAccount",
"en": "Require Verified Account",
"tr": "Hesap Doğrulaması Zorunlu mu?"
"en": "Require Admin Verified Account",
"tr": "Yönetici Hesap Doğrulaması Yapacak mı?"
},
{
"resourceName": "Platform",
"key": "Abp.Identity.Profile.General.RequireVerifiedAccount.Description",
"en": "Require Verified Account Description",
"tr": "Hesap Doğrulama Zorunlu Açıklaması"
"en": "Whether to require admin verified account to display user profile",
"tr": "Kullanıcı profilini görüntülemek için yönetici tarafından doğrulanmış hesap gerekip gerekmediği"
},
{
"resourceName": "Platform",
@ -3333,8 +3375,8 @@
{
"resourceName": "Platform",
"key": "Abp.Identity.Profile.General.BlacklistedEmailProviders.Description",
"en": "Black listed Email Providers Description",
"tr": "Kara Listedeki e-Posta Sağlayıcılarııklaması"
"en": "Comma-separated email providers that are not allowed to be used for registration or updating email. For example: yahoo.com, hotmail.com",
"tr": "Kayıt veya e-posta güncelleme için kullanılmaya izin verilmeyen virgülle ayrılmış e-posta sağlayıcıları. Örneğin: yahoo.com, hotmail.com"
},
{
"resourceName": "Platform",

View file

@ -807,7 +807,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep
new EditingFormItemDto { Order=5, DataField="WorkHour", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions = EditorOptionValues.ShowClearButton },
new EditingFormItemDto { Order=6, DataField="DepartmentId", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions = EditorOptionValues.ShowClearButton },
new EditingFormItemDto { Order=7, DataField="JobPositionId", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxSelectBox, EditorOptions = EditorOptionValues.ShowClearButton },
new EditingFormItemDto { Order=8, DataField="Password", ColSpan=1, IsRequired=true, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order=8, DataField="Password", ColSpan=1, EditorType2=EditorTypes.dxTextBox },
new EditingFormItemDto { Order=9, DataField="IsActive", ColSpan=1, EditorType2=EditorTypes.dxCheckBox },
]}
}),

View file

@ -100,9 +100,15 @@ function UserDetails() {
const cropperRef = useRef<CropperRef>(null)
const previewRef = useRef<CropperPreviewRef>(null)
const auth = useStoreState((state) => state.auth)
const { setUser } = useStoreActions((actions) => actions.auth.user)
const { setting } = useSetting()
const isEmailUpdateEnabled = setting('Abp.Identity.User.IsEmailUpdateEnabled')
const isRequireVerifiedAccount = setting('Abp.Identity.Profile.General.RequireVerifiedAccount')
const isRequireConfirmedEmail = setting('Abp.Identity.SignIn.RequireConfirmedEmail')
const isRequireConfirmedPhoneNumber = setting('Abp.Identity.SignIn.RequireConfirmedPhoneNumber')
const isTwoFactorEnabled = setting('Abp.Account.TwoFactor.Enabled')
const getUser = async (syncAvatar = true) => {
const { data } = await getUserDetail(userId || '')
@ -1268,6 +1274,7 @@ function UserDetails() {
/>
</FormItem>
{isRequireVerifiedAccount?.toLowerCase() === 'true' && (
<FormItem
layout="horizontal"
labelClass="!justify-start"
@ -1278,13 +1285,16 @@ function UserDetails() {
>
<Field
name="isVerified"
disabled={isRequireVerifiedAccount?.toLowerCase() !== 'true'}
placeholder={translate(
'::Abp.Identity.User.LockoutManagement.AdminVerification',
)}
component={Checkbox}
/>
</FormItem>
)}
{isRequireConfirmedEmail?.toLowerCase() === 'true' && (
<FormItem
layout="horizontal"
labelClass="!justify-start"
@ -1295,13 +1305,16 @@ function UserDetails() {
>
<Field
name="emailConfirmed"
disabled={isRequireConfirmedEmail?.toLowerCase() !== 'true'}
placeholder={translate(
'::Abp.Identity.User.LockoutManagement.EmailConfirmed',
)}
component={Checkbox}
/>
</FormItem>
)}
{isRequireConfirmedPhoneNumber?.toLowerCase() === 'true' && (
<FormItem
layout="horizontal"
labelClass="!justify-start"
@ -1312,13 +1325,16 @@ function UserDetails() {
>
<Field
name="phoneNumberConfirmed"
disabled={isRequireConfirmedPhoneNumber?.toLowerCase() !== 'true'}
placeholder={translate(
'::Abp.Identity.User.LockoutManagement.PhoneNumberConfirmed',
)}
component={Checkbox}
/>
</FormItem>
)}
{isTwoFactorEnabled?.toLowerCase() === 'true' && (
<FormItem
layout="horizontal"
labelClass="!justify-start"
@ -1329,12 +1345,14 @@ function UserDetails() {
>
<Field
name="twoFactorEnabled"
disabled={isTwoFactorEnabled?.toLowerCase() !== 'true'}
placeholder={translate(
'::Abp.Identity.User.LockoutManagement.TwoFactorEnabled',
)}
component={Checkbox}
/>
</FormItem>
)}
</div>
{/* Login & Lockout Settings */}