diff --git a/packages/app/components/auth/actions.test.ts b/packages/app/components/auth/actions.test.ts index c95c94b..a6a04f4 100644 --- a/packages/app/components/auth/actions.test.ts +++ b/packages/app/components/auth/actions.test.ts @@ -193,7 +193,7 @@ describe('components/auth/actions', () => { }); it('should set login', () => - callThunk(login, { login: 'foo', password: '' }).then(() => { + callThunk(login, { login: 'foo' }).then(() => { expectDispatchCalls([[setLogin('foo')]]); })); }); diff --git a/packages/app/components/auth/actions.ts b/packages/app/components/auth/actions.ts index de58a1d..f0a79d3 100644 --- a/packages/app/components/auth/actions.ts +++ b/packages/app/components/auth/actions.ts @@ -79,7 +79,7 @@ export function login({ rememberMe = false, }: { login: string; - password: string; + password?: string; totp?: string; rememberMe?: boolean; }) {