Fix deactivating MFA on user accounts (#2797)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
80d7debf1a
Коммит
c2fc28aa10
@@ -2277,6 +2277,9 @@ func generateMfaQrCode(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Del("Content-Type") // Content-Type will be set automatically by the http writer
|
w.Header().Del("Content-Type") // Content-Type will be set automatically by the http writer
|
||||||
|
w.Header().Set("Cache-Control", "no-cache")
|
||||||
|
w.Header().Set("Pragma", "no-cache")
|
||||||
|
w.Header().Set("Expires", "0")
|
||||||
w.Write(img)
|
w.Write(img)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,10 +139,9 @@ class SecurityTab extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
deactivateMfa() {
|
deactivateMfa() {
|
||||||
const data = {};
|
Client.updateMfa(
|
||||||
data.activate = false;
|
'',
|
||||||
|
false,
|
||||||
Client.updateMfa(data,
|
|
||||||
() => {
|
() => {
|
||||||
this.props.updateSection('');
|
this.props.updateSection('');
|
||||||
AsyncClient.getMe();
|
AsyncClient.getMe();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user