@nymphjs/tilmeld-setup 1.0.0-beta.19 → 1.0.0-beta.20

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.20](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2023-04-30)
7
+
8
+ ### Features
9
+
10
+ - let the user revoke all current auth tokens ([63af3b9](https://github.com/sciactive/nymphjs/commit/63af3b9a31c6c221ab40c2c8a69231675f4634a2))
11
+
6
12
  # [1.0.0-beta.19](https://github.com/sciactive/nymphjs/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2023-04-29)
7
13
 
8
14
  **Note:** Version bump only for package @nymphjs/tilmeld-setup
@@ -495,7 +495,14 @@
495
495
  type="number"
496
496
  style="width: 100%;"
497
497
  input$autocomplete="off"
498
- />
498
+ >
499
+ <HelperText persistent slot="helper">
500
+ {entity.recoverSecretDate === 0 ||
501
+ entity.recoverSecretDate == null
502
+ ? 'Unset'
503
+ : new Date(entity.recoverSecretDate).toLocaleString()}
504
+ </HelperText>
505
+ </Textfield>
499
506
  </LayoutCell>
500
507
  <LayoutCell span={12}>
501
508
  An email change uses all of the following properties. The email change
@@ -513,7 +520,13 @@
513
520
  type="number"
514
521
  style="width: 100%;"
515
522
  input$autocomplete="off"
516
- />
523
+ >
524
+ <HelperText persistent slot="helper">
525
+ {entity.emailChangeDate === 0 || entity.emailChangeDate == null
526
+ ? 'Unset'
527
+ : new Date(entity.emailChangeDate).toLocaleString()}
528
+ </HelperText>
529
+ </Textfield>
517
530
  </LayoutCell>
518
531
  <LayoutCell span={6}>
519
532
  <Textfield
@@ -551,6 +564,36 @@
551
564
  input$autocomplete="off"
552
565
  />
553
566
  </LayoutCell>
567
+ <LayoutCell span={12}>
568
+ The token revocation date is the date that all authentication tokens
569
+ must be issued after in order to work. Any token issued before this
570
+ date will be denied access. You can set this to now to log the user
571
+ out of all of their current sessions. The user will have to log in
572
+ again with their password.
573
+ </LayoutCell>
574
+ <LayoutCell span={12}>
575
+ <div style="display: flex; gap: 1em; align-items: center;">
576
+ <div style="flex-grow: 1;">
577
+ <Textfield
578
+ bind:value={entity.revokeTokenDate}
579
+ label="Token Revocation Date (Timestamp)"
580
+ type="number"
581
+ style="width: 100%;"
582
+ input$autocomplete="off"
583
+ >
584
+ <HelperText persistent slot="helper">
585
+ {entity.revokeTokenDate === 0 ||
586
+ entity.revokeTokenDate == null
587
+ ? 'Unset'
588
+ : new Date(entity.revokeTokenDate).toLocaleString()}
589
+ </HelperText>
590
+ </Textfield>
591
+ </div>
592
+ <Button on:click={() => (entity.revokeTokenDate = Date.now())}>
593
+ <Label>Now</Label>
594
+ </Button>
595
+ </div>
596
+ </LayoutCell>
554
597
  </LayoutGrid>
555
598
  {/if}
556
599
 
@@ -769,6 +812,9 @@
769
812
  if (entity.recoverSecretDate == null) {
770
813
  entity.recoverSecretDate = 0;
771
814
  }
815
+ if (entity.revokeTokenDate == null) {
816
+ entity.revokeTokenDate = 0;
817
+ }
772
818
  avatar = await entity.$getAvatar();
773
819
  await entity.$readyAll(1);
774
820
  }