mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 00:29:53 +00:00
feat: srp removal, requested changes
This commit is contained in:
@@ -110,8 +110,6 @@ export default function UserInfoStep({
|
||||
attributionSource
|
||||
});
|
||||
|
||||
console.log("Signed up", JSON.stringify(response, null, 2));
|
||||
|
||||
// unset signup JWT token and set JWT token
|
||||
SecurityClient.setSignupToken("");
|
||||
SecurityClient.setToken(response.token);
|
||||
|
||||
@@ -43,7 +43,7 @@ const attemptLogin = async ({
|
||||
const telemetry = new Telemetry().getInstance();
|
||||
|
||||
if (loginMode === LoginMode.ServerSide) {
|
||||
console.log("attempting login with server side");
|
||||
console.log("Attempting login with server side...");
|
||||
const data = await loginV3({
|
||||
email,
|
||||
password,
|
||||
@@ -51,7 +51,7 @@ const attemptLogin = async ({
|
||||
captchaToken
|
||||
}).catch((err) => {
|
||||
if (axios.isAxiosError(err) && err.response?.status === 400) {
|
||||
if (err.response.data.error === "LegacyEncryptionScheme") {
|
||||
if (err.response?.data?.error === "LegacyEncryptionScheme") {
|
||||
createNotification({
|
||||
text: "Failed to login without SRP, attempting to authenticate with legacy SRP authentication.",
|
||||
type: "error"
|
||||
|
||||
@@ -39,7 +39,7 @@ const attemptLogin = async ({
|
||||
const telemetry = new Telemetry().getInstance();
|
||||
|
||||
if (loginMode === LoginMode.ServerSide) {
|
||||
console.log("attempting login with server side");
|
||||
console.log("Attempting login with server side...");
|
||||
const data = await loginV3({
|
||||
email,
|
||||
password,
|
||||
@@ -47,7 +47,7 @@ const attemptLogin = async ({
|
||||
captchaToken
|
||||
}).catch((err) => {
|
||||
if (axios.isAxiosError(err) && err.response?.status === 400) {
|
||||
if (err.response.data.error === "LegacyEncryptionScheme") {
|
||||
if (err.response?.data?.error === "LegacyEncryptionScheme") {
|
||||
createNotification({
|
||||
text: "Failed to login without SRP, attempting to authenticate with legacy SRP authentication.",
|
||||
type: "error"
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
/* eslint-disable no-nested-ternary */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import { useState } from "react";
|
||||
import { Helmet } from "react-helmet";
|
||||
import { faXmark } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
Reference in New Issue
Block a user