fix(authentication): removed old LoginDialog.js file, fixed redirection to the external auth and created actions.any.js (#9049)

* fix(authentication) login dialog now closes when connection is established

* fix(authentication) fixed shibboleth auth

* fix(authentication) renamed authenticateExternal func to authenticate and updated its logic

* fix(authentication)removed logindialog.js and created actions.any

* fix(authentication) removed focus from externalauthwindow

* fix(authentication) removed private sign from some actions and added openLoginDialog to actions.any

* fix(authentication) exported all from actions.any

* fix(authentication) reverted change regarding externalAuth

* fix(authentication) fixed indentation
This commit is contained in:
Calinteodor
2021-04-22 18:05:14 +03:00
committed by GitHub
parent 20a62e5eb4
commit 98658f573c
13 changed files with 266 additions and 415 deletions

View File

@@ -6,7 +6,7 @@ import type { Dispatch } from 'redux';
import { Dialog } from '../../../base/dialog';
import { translate, translateToHTML } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { openLoginDialog, cancelWaitForOwner } from '../../actions.web';
import { cancelWaitForOwner } from '../../actions.web';
/**
* The type of the React {@code Component} props of {@link WaitForOwnerDialog}.
@@ -76,9 +76,9 @@ class WaitForOwnerDialog extends PureComponent<Props> {
* @returns {void}
*/
_onIAmHost() {
const { dispatch } = this.props;
const { onAuthNow } = this.props;
dispatch(openLoginDialog());
onAuthNow && onAuthNow();
}
/**
@@ -88,7 +88,7 @@ class WaitForOwnerDialog extends PureComponent<Props> {
*/
render() {
const {
_room,
_room: room,
t
} = this.props;
@@ -102,7 +102,7 @@ class WaitForOwnerDialog extends PureComponent<Props> {
<span>
{
translateToHTML(
t, 'dialog.WaitForHostMsg', { room: _room })
t, 'dialog.WaitForHostMsg', { room })
}
</span>
</Dialog>