Fix deactivating MFA on user accounts (#2797)

Этот коммит содержится в:
Joram Wilander
2016-04-26 08:40:47 -04:00
коммит произвёл Christopher Speller
родитель 80d7debf1a
Коммит c2fc28aa10
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@@ -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();