MM-26667 Set EMM username as the initial loginId (#4519)
This commit is contained in:
parent
2ccf2dc716
commit
c22d5e69f6
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