We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6a193 commit b4c91e3Copy full SHA for b4c91e3
ui/src/store/modules/auth.ts
@@ -94,6 +94,7 @@ const useAuthStore = defineStore("auth", () => {
94
};
95
96
const recoverMfa = async (code: string) => {
97
+ name.value = localStorage.getItem("name") || "";
98
const resp = await authApi.recoverMfa({ identifier: name.value, recovery_code: code });
99
if (resp.status === 200) {
100
persistAuth(resp.data);
@@ -129,7 +130,8 @@ const useAuthStore = defineStore("auth", () => {
129
130
131
132
const requestMfaReset = async () => {
- await authApi.requestResetMfa(email.value);
133
134
+ await authApi.requestResetMfa(name.value);
135
136
137
const resetMfa = async (data: IMfaReset) => {
0 commit comments