[MM-14081] Disable checkMFA Endpoint by default and add tests for MFA login (#10356)

Этот коммит содержится в:
Daniel Schalla
2019-03-01 18:56:11 +01:00
коммит произвёл GitHub
родитель 6a3fdbd489
Коммит dcf611b735
6 изменённых файлов: 85 добавлений и 2 удалений

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

@@ -991,6 +991,7 @@ func (c *Client4) UpdateUserMfa(userId, code string, activate bool) (bool, *Resp
// CheckUserMfa checks whether a user has MFA active on their account or not based on the
// provided login id.
// Deprecated: Clients should use Login method and check for MFA Error
func (c *Client4) CheckUserMfa(loginId string) (bool, *Response) {
requestBody := make(map[string]interface{})
requestBody["login_id"] = loginId