Skip to content

Commit

Permalink
Temporarily double-login
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Nov 9, 2023
1 parent 98f9355 commit 70e530d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/view/com/auth/login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {ServiceDescription} from 'state/models/session'
import {isNetworkError} from 'lib/strings/errors'
import {usePalette} from 'lib/hooks/usePalette'
import {useTheme} from 'lib/ThemeContext'
import {useSessionApi} from '#/state/session'
import {cleanError} from 'lib/strings/errors'
import {logger} from '#/logger'
import {Trans, msg} from '@lingui/macro'
Expand Down Expand Up @@ -59,6 +60,7 @@ export const LoginForm = ({
const passwordInputRef = useRef<TextInput>(null)
const {_} = useLingui()
const {openModal} = useModalControls()
const {login} = useSessionApi()

const onPressSelectService = () => {
openModal({
Expand Down Expand Up @@ -98,6 +100,12 @@ export const LoginForm = ({
}
}

// TODO remove double login
await login({
service: serviceUrl,
identifier: fullIdent,
password,
})
await store.session.login({
service: serviceUrl,
identifier: fullIdent,
Expand Down

0 comments on commit 70e530d

Please sign in to comment.