Commit cf989ab5 authored by Paul Colin Hennig's avatar Paul Colin Hennig
Browse files

replace akkount with interossea

parent 73addb99
Pipeline #690 passed with stages
in 1 minute and 25 seconds
......@@ -28,7 +28,7 @@ export default class Login extends Component {
handleClick = async () => {
this.setState({ active: false });
const res = await f(`/akkount/v1/login`, { email: this.state.email });
const res = await f(`/interossea/v1/login`, { email: this.state.email });
if (!res.error) {
this.props.history.push({ hash: "#success" });
......
......@@ -26,7 +26,7 @@ export default class TwoFaLogin extends Component {
}
};
submitTotpToken = async () => {
const res = await f(`/akkount/v1/createsession/2fa/totp`, { totp: this.state.totpToken });
const res = await f(`/interossea/v1/createsession/2fa/totp`, { totp: this.state.totpToken });
this.setState({ response: res });
if (!res.error) {
......@@ -43,7 +43,7 @@ export default class TwoFaLogin extends Component {
return this.props.history.push({ hash: "#error" });
}
const challenge = await f(`/akkount/v1/createsession/2fa/webauthn/request`, {});
const challenge = await f(`/interossea/v1/createsession/2fa/webauthn/request`, {});
if (!challenge) {
this.setState({ response: { message: "Invalid server response", error: true } });
......@@ -63,7 +63,7 @@ export default class TwoFaLogin extends Component {
this.setState({ response: { message: "The process was interrupted", error: true } });
return this.props.history.push({ hash: "#error" });
}
const verify = await f(`/akkount/v1/createsession/2fa/webauthn/verify`, { credentials });
const verify = await f(`/interossea/v1/createsession/2fa/webauthn/verify`, { credentials });
this.setState({ response: verify });
if (!verify.error) return this.props.history.push({ hash: "#success" });
......
......@@ -19,7 +19,7 @@ export default class TwoFa extends Component {
};
totpClick = async overwriteTotp => {
const res = await f(`/akkount/v1/2fa/totp/generate`, { replace: overwriteTotp });
const res = await f(`/interossea/v1/2fa/totp/generate`, { replace: overwriteTotp });
this.setState({ response: res, qrCode: res.qrCode, secret: res.secret });
if (!res.error) {
......@@ -40,7 +40,7 @@ export default class TwoFa extends Component {
}
};
submitTotpToken = async () => {
const res = await f(`/akkount/v1/2fa/totp/register`, { totp: this.state.totpToken });
const res = await f(`/interossea/v1/2fa/totp/register`, { totp: this.state.totpToken });
this.setState({ response: res });
if (!res.error) {
......@@ -62,7 +62,7 @@ export default class TwoFa extends Component {
return this.props.history.push({ hash: "#error" });
}
const challenge = await f(`/akkount/v1/2fa/webauthn/register/request`, {});
const challenge = await f(`/interossea/v1/2fa/webauthn/register/request`, {});
if (challenge.error) {
this.setState({ response: challenge });
......@@ -78,7 +78,7 @@ export default class TwoFa extends Component {
return this.props.history.push({ hash: "#error" });
}
const registration = await f("/akkount/v1/2fa/webauthn/register/verify", { credentials });
const registration = await f("/interossea/v1/2fa/webauthn/register/verify", { credentials });
this.setState({ response: registration });
if (registration) return this.props.history.push({ hash: "#webauthnRegisterSuccess" });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment