Skip to content

Commit 32f6959

Browse files
committed
sso/update_on_login: figure out how to use a check_hook
1 parent 56e7230 commit 32f6959

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/packages/database/settings/auth-sso-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export interface PassportStrategyDBConfig {
127127
* - description: A longer description of the strategy, could be markdown, shown on the dedicated /sso/... pages.
128128
* - icon: A URL to an icon
129129
* - disabled: if true, this is ignored during the initialization
130-
* - update_on_login: if true, the user's profile is updated on login (first and last name, not email)
130+
* - update_on_login: if true, the user's profile is updated on login (first and last name, not email) and NOT by the user.
131131
* - cookie_ttl_s: how long the remember_me cookied lasts (default is a month or so).
132132
* This could be set to a much shorter period to force users more frequently to re-login.
133133
*/

src/packages/util/db-schema/accounts.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ Table({
424424
}
425425
}
426426
}
427+
// check, if account is exclusively controlled by SSO and its update_on_login config is true
428+
const {email_address} = obj
429+
if (email_address != null) {
430+
// TODO
431+
}
427432
cb();
428433
},
429434
},

0 commit comments

Comments
 (0)