mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix deactivating MFA on user accounts (#2797)
This commit is contained in:
committed by
Christopher Speller
parent
80d7debf1a
commit
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().Set("Cache-Control", "no-cache")
|
||||
w.Header().Set("Pragma", "no-cache")
|
||||
w.Header().Set("Expires", "0")
|
||||
w.Write(img)
|
||||
}
|
||||
|
||||
|
||||
@@ -139,10 +139,9 @@ class SecurityTab extends React.Component {
|
||||
);
|
||||
}
|
||||
deactivateMfa() {
|
||||
const data = {};
|
||||
data.activate = false;
|
||||
|
||||
Client.updateMfa(data,
|
||||
Client.updateMfa(
|
||||
'',
|
||||
false,
|
||||
() => {
|
||||
this.props.updateSection('');
|
||||
AsyncClient.getMe();
|
||||
|
||||
Reference in New Issue
Block a user