mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-10-22 16:42:37 +00:00
frontend: log in to the new PDS by DID, not email, during migration
This commit is contained in:
@@ -627,7 +627,7 @@ export function createInboundMigrationFlow() {
|
||||
|
||||
if (localPassword) {
|
||||
setProgress({ currentOperation: "Authenticating to new PDS..." });
|
||||
await localClient.loginDeactivated(state.targetEmail, localPassword);
|
||||
await localClient.loginDeactivated(state.sourceDid, localPassword);
|
||||
}
|
||||
|
||||
if (!localClient.getAccessToken()) {
|
||||
@@ -677,7 +677,7 @@ export function createInboundMigrationFlow() {
|
||||
|
||||
if (!localClient!.getAccessToken()) {
|
||||
await localClient!.loginDeactivated(
|
||||
state.targetEmail,
|
||||
state.sourceDid,
|
||||
state.targetPassword,
|
||||
);
|
||||
}
|
||||
@@ -928,7 +928,7 @@ export function createInboundMigrationFlow() {
|
||||
});
|
||||
|
||||
setProgress({ currentOperation: "Authenticating with app password..." });
|
||||
await localClient.loginDeactivated(state.targetEmail, result.appPassword);
|
||||
await localClient.loginDeactivated(state.sourceDid, result.appPassword);
|
||||
migrationLog("completePasskeyRegistration: Authenticated to new PDS");
|
||||
|
||||
state.generatedAppPassword = result.appPassword;
|
||||
|
||||
@@ -452,7 +452,7 @@ export function createOfflineInboundMigrationFlow() {
|
||||
setStep("passkey-setup");
|
||||
} else {
|
||||
const session = await api.createSession(
|
||||
state.targetEmail,
|
||||
state.userDid,
|
||||
state.targetPassword,
|
||||
);
|
||||
state.localAccessToken = session.accessJwt;
|
||||
@@ -503,7 +503,7 @@ export function createOfflineInboundMigrationFlow() {
|
||||
async onVerified() {
|
||||
if (!state.localAccessToken) {
|
||||
const session = await api.createSession(
|
||||
state.targetEmail,
|
||||
state.userDid,
|
||||
state.targetPassword,
|
||||
);
|
||||
state.localAccessToken = session.accessJwt;
|
||||
@@ -557,7 +557,7 @@ export function createOfflineInboundMigrationFlow() {
|
||||
state.generatedAppPasswordName = result.appPasswordName;
|
||||
|
||||
const session = await api.createSession(
|
||||
state.targetEmail,
|
||||
state.userDid,
|
||||
result.appPassword,
|
||||
);
|
||||
state.localAccessToken = session.accessJwt;
|
||||
|
||||
Reference in New Issue
Block a user