Skip to content

Commit 3be5ea8

Browse files
committed
Add password aging
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
1 parent c5066da commit 3be5ea8

File tree

40 files changed

+221
-92
lines changed

40 files changed

+221
-92
lines changed

common/changes/@hcengineering/client-resources/enable-formatting-check_2025-11-20-14-13.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

common/changes/@hcengineering/client-resources/main_2025-10-29-07-46.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

common/changes/@hcengineering/client/enable-formatting-check_2025-11-20-14-13.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/account-client/CHANGELOG.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
{
22
"name": "@hcengineering/account-client",
33
"entries": [
4+
{
5+
"version": "0.7.20",
6+
"tag": "@hcengineering/account-client_v0.7.20",
7+
"date": "Wed, 26 Nov 2025 15:28:11 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Add password aging"
12+
}
13+
],
14+
"dependency": [
15+
{
16+
"comment": "Updating dependency \"@hcengineering/core\" from `^0.7.22` to `0.7.23`"
17+
},
18+
{
19+
"comment": "Updating dependency \"@hcengineering/platform\" from `^0.7.18` to `0.7.19`"
20+
}
21+
]
22+
}
23+
},
424
{
525
"version": "0.7.19",
626
"tag": "@hcengineering/account-client_v0.7.19",

packages/account-client/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log - @hcengineering/account-client
22

3-
This log was last generated on Thu, 30 Oct 2025 08:41:42 GMT and should not be manually modified.
3+
This log was last generated on Wed, 26 Nov 2025 15:28:11 GMT and should not be manually modified.
4+
5+
## 0.7.20
6+
Wed, 26 Nov 2025 15:28:11 GMT
7+
8+
### Patches
9+
10+
- Add password aging
411

512
## 0.7.19
613
Thu, 30 Oct 2025 08:41:42 GMT

packages/account-client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hcengineering/account-client",
3-
"version": "0.7.19",
3+
"version": "0.7.20",
44
"main": "lib/index.js",
55
"svelte": "src/index.ts",
66
"types": "types/index.d.ts",
@@ -43,8 +43,8 @@
4343
"eslint-plugin-svelte": "^2.35.1"
4444
},
4545
"dependencies": {
46-
"@hcengineering/core": "workspace:^0.7.22",
47-
"@hcengineering/platform": "workspace:^0.7.18"
46+
"@hcengineering/core": "workspace:^0.7.23",
47+
"@hcengineering/platform": "workspace:^0.7.19"
4848
},
4949
"repository": "https://github.com/hcengineering/huly.core",
5050
"publishConfig": {

packages/account-client/src/client.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ export interface AccountClient {
232232
addEmailSocialId: (email: string) => Promise<OtpInfo>
233233
addHulyAssistantSocialId: () => Promise<PersonId>
234234
refreshHulyAssistantToken: () => Promise<void>
235+
updatePasswordAgingRule: (days: number) => Promise<void>
236+
checkPasswordAging: () => Promise<boolean>
235237

236238
setMyProfile: (profile: Partial<Omit<UserProfile, 'personUuid'>>) => Promise<void>
237239
getUserProfile: (personUuid?: PersonUuid) => Promise<PersonWithProfile | null>
@@ -508,6 +510,24 @@ class AccountClientImpl implements AccountClient {
508510
await this.rpc(request)
509511
}
510512

513+
async updatePasswordAgingRule (days: number): Promise<void> {
514+
const request = {
515+
method: 'updatePasswordAgingRule' as const,
516+
params: { days }
517+
}
518+
519+
await this.rpc(request)
520+
}
521+
522+
async checkPasswordAging (): Promise<boolean> {
523+
const request = {
524+
method: 'checkPasswordAging' as const,
525+
params: {}
526+
}
527+
528+
return await this.rpc(request)
529+
}
530+
511531
async signUpJoin (
512532
email: string,
513533
password: string,

packages/account-client/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface LoginInfoWorkspace {
4141
role: AccountRole | null
4242
progress?: number
4343
branding?: string
44+
passwordAgingRule?: number // in days
4445
}
4546

4647
export interface LoginInfoWithWorkspaces extends LoginInfo {

packages/analytics-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"eslint-plugin-svelte": "^2.35.1"
4141
},
4242
"dependencies": {
43-
"@hcengineering/platform": "workspace:^0.7.18",
44-
"@hcengineering/core": "workspace:^0.7.22",
43+
"@hcengineering/platform": "workspace:^0.7.19",
44+
"@hcengineering/core": "workspace:^0.7.23",
4545
"@hcengineering/analytics": "workspace:^0.7.17",
4646
"@hcengineering/measurements-otlp": "workspace:^0.7.17",
4747
"winston": "^3.11.0",

packages/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"eslint-plugin-svelte": "^2.35.1"
4141
},
4242
"dependencies": {
43-
"@hcengineering/platform": "workspace:^0.7.18"
43+
"@hcengineering/platform": "workspace:^0.7.19"
4444
},
4545
"repository": "https://github.com/hcengineering/huly.core",
4646
"publishConfig": {

0 commit comments

Comments
 (0)