feat: Add ability to unlink SSO from user

This commit is contained in:
Maksim Eltyshev
2026-01-26 21:18:32 +01:00
parent ee917c545c
commit 2b699f77f4
39 changed files with 238 additions and 9 deletions
+3
View File
@@ -13,6 +13,8 @@ const ID_REGEX = /^[1-9][0-9]*$/;
const IDS_WITH_COMMA_REGEX = /^[1-9][0-9]*(,[1-9][0-9]*)*$/;
const USERNAME_REGEX = /^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$/;
const is = (defaultValue) => (value) => value === defaultValue;
const isUrl = (value) =>
validator.isURL(value, {
protocols: ['http', 'https'],
@@ -61,6 +63,7 @@ module.exports = {
IDS_WITH_COMMA_REGEX,
USERNAME_REGEX,
is,
isUrl,
isIdInRange,
isIdsWithCommaInRange,