MM-26667 Set EMM username as the initial loginId (#4524)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
parent
0ef94c23af
commit
ef4bc3b1e2
1 changed files with 2 additions and 1 deletions
|
|
@ -297,7 +297,8 @@ export default class Login extends PureComponent {
|
|||
setEmmUsernameIfAvailable = async () => {
|
||||
const managedConfig = await mattermostManaged.getConfig();
|
||||
if (managedConfig?.username && this.loginRef.current) {
|
||||
this.loginRef.current.setNativeProps({text: managedConfig?.username});
|
||||
this.loginRef.current.setNativeProps({text: managedConfig.username});
|
||||
this.loginId = managedConfig.username;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue