@liujitcn/kratos-uni-app-core 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.39",
10
+ "version": "0.0.40",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -1028,6 +1028,15 @@ onLoad(() => {
1028
1028
  class="login-input"
1029
1029
  :placeholder="t('core.login.mfa_recovery_code')"
1030
1030
  />
1031
+ <checkbox-group
1032
+ v-if="mfaRememberDays > 0"
1033
+ @change="rememberMfaDevice = $event.detail.value.includes('remember')"
1034
+ >
1035
+ <label class="mfa-remember-device">
1036
+ <checkbox value="remember" :checked="rememberMfaDevice" />
1037
+ <text>{{ t('core.login.mfa_remember_device', { days: mfaRememberDays }) }}</text>
1038
+ </label>
1039
+ </checkbox-group>
1031
1040
  <button
1032
1041
  class="login-button login-button-primary"
1033
1042
  :loading="mfaLoading"
@@ -1280,6 +1289,20 @@ onLoad(() => {
1280
1289
  color: #172a35;
1281
1290
  }
1282
1291
 
1292
+ .mfa-remember-device {
1293
+ display: flex;
1294
+ align-items: center;
1295
+ margin-bottom: 20rpx;
1296
+ font-size: 26rpx;
1297
+ line-height: 1.5;
1298
+ color: #172a35;
1299
+ }
1300
+
1301
+ .mfa-remember-device checkbox {
1302
+ flex-shrink: 0;
1303
+ margin-right: 12rpx;
1304
+ }
1305
+
1283
1306
  .mfa-panel .login-input {
1284
1307
  width: 100%;
1285
1308
  height: 88rpx;