diff --git a/src/Server.UI/Pages/Identity/Users/Components/UserForm.razor b/src/Server.UI/Pages/Identity/Users/Components/UserForm.razor index c1809f6bd..ee5549ce6 100644 --- a/src/Server.UI/Pages/Identity/Users/Components/UserForm.razor +++ b/src/Server.UI/Pages/Identity/Users/Components/UserForm.razor @@ -74,7 +74,7 @@ - + @@ -172,8 +172,9 @@ var filename = file.Name; var fi = new FileInfo(filename); var ext = fi.Extension; - var result = await UploadService.UploadAsync(new UploadRequest(Guid.NewGuid() + ext, UploadType.ProfilePicture, outStream.ToArray())); + var result = await UploadService.UploadAsync(new UploadRequest($"{Model.Id}_{DateTime.UtcNow.Ticks}.png", UploadType.ProfilePicture, outStream.ToArray())); Model.ProfilePictureDataUrl = result; + //Do your validations here Snackbar.Add(ConstantString.UploadSuccess, Severity.Info); } diff --git a/src/Server.UI/Pages/Identity/Users/Profile.razor b/src/Server.UI/Pages/Identity/Users/Profile.razor index 156c9b63f..4ff2bc74a 100644 --- a/src/Server.UI/Pages/Identity/Users/Profile.razor +++ b/src/Server.UI/Pages/Identity/Users/Profile.razor @@ -181,7 +181,7 @@ else private async Task LoadOrgData() { - + var list = await UserManager.Users.Include(x => x.UserRoles).ThenInclude(x => x.Role).Include(x => x.Superior).ToListAsync(); foreach (var item in list) @@ -235,7 +235,7 @@ else var user = await UserManager.FindByNameAsync(model.UserName) ?? throw new NotFoundException($"The application user [{model.UserName}] was not found."); image.Mutate(i => i.Resize(new ResizeOptions { Mode = ResizeMode.Crop, Size = new Size(128, 128) })); image.Save(outStream, PngFormat.Instance); - var result = await UploadService.UploadAsync(new UploadRequest(user.Id + ".png", UploadType.ProfilePicture, outStream.ToArray(), true)); + var result = await UploadService.UploadAsync(new UploadRequest($"{user.Id}_{DateTime.UtcNow.Ticks}.png", UploadType.ProfilePicture, outStream.ToArray(), true)); model.ProfilePictureDataUrl = result; user.ProfilePictureDataUrl = model.ProfilePictureDataUrl; await UserManager.UpdateAsync(user); diff --git a/src/Server.UI/Pages/Identity/Users/Users.razor b/src/Server.UI/Pages/Identity/Users/Users.razor index 054640023..28155fb6b 100644 --- a/src/Server.UI/Pages/Identity/Users/Users.razor +++ b/src/Server.UI/Pages/Identity/Users/Users.razor @@ -152,7 +152,7 @@ @if (_canSearch) { - + @foreach (var str in _roles) { @str diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.ca-ES.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.ca-ES.resx index fb00330d9..7f3f7c477 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.ca-ES.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.ca-ES.resx @@ -286,4 +286,10 @@ Envieu un correu electrònic de restabliment de la contrasenya + + No hi ha cap funció disponible per a aquest llogater. + + + Cerca per nom de rol + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.de-DE.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.de-DE.resx index 558431d07..e96752893 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.de-DE.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.de-DE.resx @@ -286,4 +286,10 @@ E-Mail zum Zurücksetzen des Passworts senden + + Für diesen Mandanten sind keine Rollen verfügbar. + + + Suche nach Rollennamen + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.en.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.en.resx index 036dd65dd..997d10f39 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.en.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.en.resx @@ -286,4 +286,10 @@ Send Reset Password Email + + No roles available for this tenant. + + + Search by role name + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.es-ES.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.es-ES.resx index 66dcbb26b..f8a19f9f6 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.es-ES.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.es-ES.resx @@ -286,4 +286,10 @@ Enviar correo electrónico para restablecer contraseña + + No hay roles disponibles para este inquilino. + + + Buscar por nombre de rol + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.fr-FR.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.fr-FR.resx index 57f3e6ee6..5b9989c3d 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.fr-FR.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.fr-FR.resx @@ -286,4 +286,10 @@ Envoyer un e-mail de réinitialisation du mot de passe + + Aucun rôle n'est disponible pour ce locataire. + + + Recherche par nom de rôle + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.ja-JP.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.ja-JP.resx index 3c0c293f0..3fddfe9e9 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.ja-JP.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.ja-JP.resx @@ -286,4 +286,10 @@ パスワードリセットメールを送信 + + このテナントに使用できるロールはありません。 + + + 役割名で検索 + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.km-KH.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.km-KH.resx index 22c1cd7e0..71e7e6f63 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.km-KH.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.km-KH.resx @@ -286,4 +286,10 @@ ផ្ញើអ៊ីមែលកំណត់ពាក្យសម្ងាត់ឡើងវិញ + + មិនមានតួនាទីសម្រាប់ភតិកៈនេះទេ។ + + + ស្វែងរកតាមឈ្មោះតួនាទី + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.ko-KR.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.ko-KR.resx index 50a82c459..1995797f8 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.ko-KR.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.ko-KR.resx @@ -286,4 +286,10 @@ 비밀번호 재설정 이메일 보내기 + + 이 테넌트에 대한 역할이 없습니다. + + + 역할 이름으로 검색 + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.resx index 9d42a0248..b940981e2 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.resx @@ -286,4 +286,10 @@ No permission to change status. + + No roles available for this tenant. + + + Search by role name + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.ru.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.ru.resx index 3b97aeff5..c1d815f65 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.ru.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.ru.resx @@ -286,4 +286,10 @@ Отправить электронное письмо для сброса пароля + + Для этого арендатора нет доступных ролей. + + + Поиск по названию роли + \ No newline at end of file diff --git a/src/Server.UI/Resources/Pages/Identity/Users/Users.zh-CN.resx b/src/Server.UI/Resources/Pages/Identity/Users/Users.zh-CN.resx index d1e920eba..01552a80f 100644 --- a/src/Server.UI/Resources/Pages/Identity/Users/Users.zh-CN.resx +++ b/src/Server.UI/Resources/Pages/Identity/Users/Users.zh-CN.resx @@ -286,4 +286,10 @@ 发送重置密码电子邮件 + + 该租户没有可用的角色。 + + + 按角色名称搜索 + \ No newline at end of file