Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/Frontend_Identity/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const messages = {
"Access Failed Count": "Access Failed Count",
"Email": "Email",
"Remark": "Remark",
"Tags": "Tags",
},
zh_cn: {
UserName: '用户名',
Next: '下一页',
FirstName: '名字',
Expand Down Expand Up @@ -74,8 +74,8 @@ const messages = {
"Access Failed Count": "访问失败次数",
"Email": "电子邮件",
"Remark": "备注",
"Tags": "标签",
},
zh_hant: {
"UserName": "使用者名稱",
"Next": "下一頁",
"FirstName": "名字",
Expand Down Expand Up @@ -111,8 +111,8 @@ const messages = {
"Access Failed Count": "訪問失敗次數",
"Email": "電子郵件",
"Remark": "備註",
"Tags": "標籤",
},
es: {
"UserName": "Nombre de usuario",
"Next": "Siguiente",
"FirstName": "Nombre",
Expand Down Expand Up @@ -148,7 +148,7 @@ const messages = {
"Access Failed Count": "Recuento de accesos fallidos",
"Email": "Correo electrónico",
"Remark": "Observación",

"Tags": "Etiquetas",
},
ko: {
"UserName": "사용자 이름",
Expand Down Expand Up @@ -186,8 +186,8 @@ const messages = {
"Access Failed Count": "액세스 실패 횟수",
"Email": "이메일",
"Remark": "비고",
"Tags": "태그",
},
ja: {
"UserName": "ユーザー名",
"Next": "次のページ",
"FirstName": "名",
Expand Down Expand Up @@ -223,6 +223,7 @@ const messages = {
"Access Failed Count": "アクセス失敗回数",
"Email": "メール",
"Remark": "備考",
"Tags": "タグ",
}, ru: {
"UserName": "Имя пользователя",
"Next": "Следующая страница",
Expand Down Expand Up @@ -259,6 +260,7 @@ const messages = {
"Access Failed Count": "Количество неудачных попыток доступа",
"Email": "Электронная почта",
"Remark": "Примечание",
"Tags": "Теги",
}, fr: {
"UserName": "Nom d'utilisateur",
"Next": "Page suivante",
Expand Down Expand Up @@ -295,6 +297,7 @@ const messages = {
"Access Failed Count": "Nombre d'échecs d'accès",
"Email": "Email",
"Remark": "Remarque",
"Tags": "Étiquettes",
}
};
export const i18n = createI18n({
Expand Down
12 changes: 12 additions & 0 deletions src/Frontend_Identity/src/views/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<th>{{ $t('FirstName') }}</th>
<th>{{ $t('LastName') }}</th>
<th>{{ $t('Employee_Number') }}</th>
<th>{{ $t('Tags') }}</th>
<th>{{ $t('Enable') }}</th>
<th>{{ $t('Email Confirmed') }}</th>
<th>{{ $t('PhoneNumber Confirmed') }}</th>
Expand Down Expand Up @@ -132,6 +133,9 @@
<td>
<input class="input_no_border" type="text" v-model="item.Emp_no" />
</td>
<td>
<input class="input_no_border" type="text" v-model="item.Tags" />
</td>
<td>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" v-model="item.Enable" />
Expand Down Expand Up @@ -288,6 +292,14 @@
required
/>

<label for="tags">{{ $t('Tags') }}:</label>
<input
class="form-control"
type="text"
v-model="editedUser.Tags"
id="tags"
/>

<label for="enable">{{ $t('Enable') }}:</label>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" v-model="editedUser.Enable" />
Expand Down
3 changes: 2 additions & 1 deletion src/MiniAuth.IdentityAuth/MiniAuthIdentityEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ [FromBody] LoginRequest login
// enable null = true
Enable = claims.FirstOrDefault(f => f.ClaimType == "Enable")?.ClaimValue != "False",
Emp_no = claims.FirstOrDefault(f => f.ClaimType == "Emp_no")?.ClaimValue,
Tags = claims.FirstOrDefault(f => f.ClaimType == "Tags")?.ClaimValue,
};
return result;
});
Expand Down Expand Up @@ -375,7 +376,7 @@ [FromBody] LoginRequest login

var userClaims = _dbContext.UserClaims.Where(w => w.UserId == user.Id).ToArray();
{
string[] keys = new[] { "First_name", "Last_name", "Emp_no", "Enable" };
string[] keys = new[] { "First_name", "Last_name", "Emp_no", "Enable", "Tags" };
foreach (var item in keys)
{
var userClaim = userClaims.FirstOrDefault(f => f.ClaimType == item);
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/MiniAuth.IdentityAuth/wwwroot/assets/index-wa5Wqz5d.js

Large diffs are not rendered by default.