Rename
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user