More subscription license work allow logins addition
This commit is contained in:
@@ -83,6 +83,19 @@
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
ref="allowLogin"
|
||||
v-model="obj.allowLogin"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="obj.id === 1"
|
||||
:label="$ay.t('AllowLogin')"
|
||||
data-cy="allowLogin"
|
||||
:error-messages="form().serverErrors(this, 'allowLogin')"
|
||||
@change="fieldValueChanged('allowLogin')"
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
id="username"
|
||||
ref="login"
|
||||
@@ -100,7 +113,7 @@
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-col v-if="obj.allowLogin" cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
id="password"
|
||||
ref="password"
|
||||
@@ -116,6 +129,7 @@
|
||||
@click:append-outer="reveal = !reveal"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-date-time-picker
|
||||
ref="lastLogin"
|
||||
@@ -408,6 +422,7 @@ export default {
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
active: true,
|
||||
allowLogin: false,
|
||||
name: null,
|
||||
roles: 2048,
|
||||
userType: 3,
|
||||
@@ -1033,7 +1048,8 @@ async function fetchTranslatedText() {
|
||||
"UserPageAddress",
|
||||
"SendPasswordResetCode",
|
||||
"AuthDisableTwoFactor",
|
||||
"AuthTwoFactorDisabled"
|
||||
"AuthTwoFactorDisabled",
|
||||
"AllowLogin"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user