feat(web,server): disable password login (#1223)

* feat(web,server): disable password login

* chore: unit tests

* chore: fix import

* chore: linting

* feat(cli): server command for enable/disable password login

* chore: update docs

* feat(web): confirm dialogue

* chore: linting

* chore: linting

* chore: linting

* chore: linting

* chore: linting

* chore: fix web test

* chore: server unit tests
This commit is contained in:
Jason Rasmussen
2023-01-09 16:32:58 -05:00
committed by GitHub
parent 5999af6c78
commit bd838a71d1
66 changed files with 861 additions and 167 deletions

View File

@@ -1377,6 +1377,12 @@ export interface OAuthConfigResponseDto {
* @memberof OAuthConfigResponseDto
*/
'enabled': boolean;
/**
*
* @type {boolean}
* @memberof OAuthConfigResponseDto
*/
'passwordLoginEnabled': boolean;
/**
*
* @type {string}
@@ -1389,6 +1395,12 @@ export interface OAuthConfigResponseDto {
* @memberof OAuthConfigResponseDto
*/
'buttonText'?: string;
/**
*
* @type {boolean}
* @memberof OAuthConfigResponseDto
*/
'autoLaunch'?: boolean;
}
/**
*
@@ -1602,10 +1614,10 @@ export interface SharedLinkResponseDto {
'expiresAt': string | null;
/**
*
* @type {Array<string>}
* @type {Array<AssetResponseDto>}
* @memberof SharedLinkResponseDto
*/
'assets': Array<string>;
'assets': Array<AssetResponseDto>;
/**
*
* @type {AlbumResponseDto}
@@ -1707,6 +1719,12 @@ export interface SystemConfigDto {
* @memberof SystemConfigDto
*/
'oauth': SystemConfigOAuthDto;
/**
*
* @type {SystemConfigPasswordLoginDto}
* @memberof SystemConfigDto
*/
'passwordLogin': SystemConfigPasswordLoginDto;
/**
*
* @type {SystemConfigStorageTemplateDto}
@@ -1799,6 +1817,12 @@ export interface SystemConfigOAuthDto {
* @memberof SystemConfigOAuthDto
*/
'autoRegister': boolean;
/**
*
* @type {boolean}
* @memberof SystemConfigOAuthDto
*/
'autoLaunch': boolean;
/**
*
* @type {boolean}
@@ -1812,6 +1836,19 @@ export interface SystemConfigOAuthDto {
*/
'mobileRedirectUri': string;
}
/**
*
* @export
* @interface SystemConfigPasswordLoginDto
*/
export interface SystemConfigPasswordLoginDto {
/**
*
* @type {boolean}
* @memberof SystemConfigPasswordLoginDto
*/
'enabled': boolean;
}
/**
*
* @export