# onMobileRTCLoginReturn fails with returnValue 2011

**URL:** <https://devforum.zoom.us/t/onmobilertcloginreturn-fails-with-returnvalue-2011/21289>\
**Category:** iOS\
**Created:** [June 13, 2020, 6:33pm UTC](https://devforum.zoom.us/t/onmobilertcloginreturn-fails-with-returnvalue-2011/21289 "2020-06-13T18:33:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.andersen](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@matt.andersen](https://devforum.zoom.us/u/matt.andersen)\
**Post date:** [June 13, 2020, 6:33pm UTC](https://devforum.zoom.us/t/onmobilertcloginreturn-fails-with-returnvalue-2011/21289/1 "2020-06-13T18:33:21Z")

</div>

**Description**  
Email login fails with undocumented onMobileRTCLoginReturn returnValue 2011.

This is using an iOS integration which works for other users.

`authService.login(withEmail: email, password: pass, rememberMe: true )`

Expected:  
Login would succeed, or return a documented failure code, i.e. a member of this enum to diagnose the issue.

```auto
typedef enum {
    MobileRTCAuthError_Success,
    MobileRTCAuthError_KeyOrSecretEmpty,
    MobileRTCAuthError_KeyOrSecretWrong,
    MobileRTCAuthError_AccountNotSupport,
    MobileRTCAuthError_AccountNotEnableSDK,
    MobileRTCAuthError_Unknown,
}MobileRTCAuthError;

```

[https://zoom.github.io/zoom-sdk-ios/\_mobile\_r\_t\_c\_constants\_8h\_source.html](https://zoom.github.io/zoom-sdk-ios/_mobile_r_t_c_constants_8h_source.html)

**Which version?**  
v4.6.21666.0428

**Smartphone (please complete the following information):**  
iPhone 11 iOS 13.4.1, repros on various phones.

**Other Context**  
Differences between failing user case and accounts which work:

- institutional HIPAA account
- many non-alphanumeric symbols in password

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 17, 2020, 5:14am UTC](https://devforum.zoom.us/t/onmobilertcloginreturn-fails-with-returnvalue-2011/21289/2 "2020-06-17T05:14:40Z")

</div>

Hi @matt.andersen,

Thanks for using Zoom SDK. The error code 2011 means your account has enabled and enforced the SSO login. Please try to implement the SSO login or use other accounts that do not have SSO login enforced.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:05pm UTC](https://devforum.zoom.us/t/onmobilertcloginreturn-fails-with-returnvalue-2011/21289/3 "2020-08-21T22:05:12Z")

</div>

Closed on August 21, 2020, 10:05pm UTC


