This commit is contained in:
Manav Rathi
2025-06-11 09:04:34 +05:30
parent 61d07242ad
commit a1a480f35e
4 changed files with 7 additions and 7 deletions

View File

@@ -23,10 +23,10 @@ import {
import { checkSessionValidity } from "ente-accounts/services/session";
import type { SRPAttributes } from "ente-accounts/services/srp";
import {
configureSRP,
generateSRPSetupAttributes,
getSRPAttributes,
loginViaSRP,
setupSRP,
} from "ente-accounts/services/srp";
import {
generateAndSaveInteractiveKeyAttributes,
@@ -271,7 +271,7 @@ const Page: React.FC = () => {
}
log.debug(() => `userSRPSetupPending ${!srpAttributes}`);
if (!srpAttributes) {
await configureSRP(await generateSRPSetupAttributes(kek));
await setupSRP(await generateSRPSetupAttributes(kek));
}
} catch (e) {
log.error("migrate to srp failed", e);

View File

@@ -9,8 +9,8 @@ import SetPasswordForm, {
} from "ente-accounts/components/SetPasswordForm";
import { appHomeRoute } from "ente-accounts/services/redirect";
import {
configureSRP,
generateSRPSetupAttributes,
setupSRP,
} from "ente-accounts/services/srp";
import type { KeyAttributes, User } from "ente-accounts/services/user";
import {
@@ -74,7 +74,7 @@ const Page: React.FC = () => {
await generateKeysAndAttributes(passphrase);
await putUserKeyAttributes(keyAttributes);
await configureSRP(await generateSRPSetupAttributes(kek));
await setupSRP(await generateSRPSetupAttributes(kek));
await generateAndSaveInteractiveKeyAttributes(
passphrase,
keyAttributes,

View File

@@ -17,8 +17,8 @@ import {
unstashRedirect,
} from "ente-accounts/services/redirect";
import {
configureSRP,
getSRPAttributes,
setupSRP,
unstashAndUseSRPSetupAttributes,
type SRPAttributes,
} from "ente-accounts/services/srp";
@@ -146,7 +146,7 @@ const Page: React.FC = () => {
if (originalKeyAttributes) {
await putUserKeyAttributes(originalKeyAttributes);
}
await unstashAndUseSRPSetupAttributes(configureSRP);
await unstashAndUseSRPSetupAttributes(setupSRP);
}
// TODO(RE): Temporary safety valve before removing the
// unnecessary clear (tag: Migration)

View File

@@ -364,7 +364,7 @@ export const unstashAndUseSRPSetupAttributes = async (
*
* @param srpSetupAttributes SRP setup attributes.
*/
export const configureSRP = async (srpSetupAttributes: SRPSetupAttributes) =>
export const setupSRP = async (srpSetupAttributes: SRPSetupAttributes) =>
srpSetupOrReconfigure(srpSetupAttributes, completeSRPSetup);
/**