diff --git a/src/components/structures/login/Login.js b/src/components/structures/login/Login.js index 78f515804a..eb4e559237 100644 --- a/src/components/structures/login/Login.js +++ b/src/components/structures/login/Login.js @@ -20,7 +20,6 @@ limitations under the License. import React from 'react'; import { _t } from '../../../languageHandler'; import ReactDOM from 'react-dom'; -import url from 'url'; import sdk from '../../../index'; import Login from '../../../Login'; @@ -245,12 +244,6 @@ module.exports = React.createClass({ switch (step) { case 'm.login.password': const PasswordLogin = sdk.getComponent('login.PasswordLogin'); - // HSs that are not matrix.org may not be configured to have their - // domain name === domain part. - let hsDomain = url.parse(this.state.enteredHomeserverUrl).hostname; - if (hsDomain !== 'matrix.org') { - hsDomain = null; - } return ( ); case 'm.login.cas': diff --git a/src/components/views/login/PasswordLogin.js b/src/components/views/login/PasswordLogin.js index 7360b343e5..51042a59b3 100644 --- a/src/components/views/login/PasswordLogin.js +++ b/src/components/views/login/PasswordLogin.js @@ -122,32 +122,16 @@ class PasswordLogin extends React.Component { autoFocus />; case PasswordLogin.LOGIN_FIELD_MXID: - const mxidInputClasses = classNames({ - "mx_Login_field": true, - "mx_Login_username": true, - "mx_Login_field_has_prefix": true, - "mx_Login_field_has_suffix": Boolean(this.props.hsDomain), - }); - let suffix = null; - if (this.props.hsDomain) { - suffix =
- :{this.props.hsDomain} -
; - } - return
-
@
- - {suffix} -
; + return ; case PasswordLogin.LOGIN_FIELD_PHONE: const CountryDropdown = sdk.getComponent('views.login.CountryDropdown'); return
@@ -238,7 +222,6 @@ PasswordLogin.propTypes = { onPhoneNumberChanged: React.PropTypes.func, onPasswordChanged: React.PropTypes.func, loginIncorrect: React.PropTypes.bool, - hsDomain: React.PropTypes.string, }; module.exports = PasswordLogin;