diff --git a/src/components/structures/login/Registration.js b/src/components/structures/auth/Registration.js
similarity index 97%
rename from src/components/structures/login/Registration.js
rename to src/components/structures/auth/Registration.js
index 74e3685bb5..617c9d6983 100644
--- a/src/components/structures/login/Registration.js
+++ b/src/components/structures/auth/Registration.js
@@ -24,7 +24,7 @@ import PropTypes from 'prop-types';
import sdk from '../../../index';
import MatrixClientPeg from '../../../MatrixClientPeg';
-import RegistrationForm from '../../views/login/RegistrationForm';
+import RegistrationForm from '../../views/auth/RegistrationForm';
import RtsClient from '../../../RtsClient';
import { _t, _td } from '../../../languageHandler';
import SdkConfig from '../../../SdkConfig';
@@ -396,12 +396,12 @@ module.exports = React.createClass({
},
render: function() {
- const LoginHeader = sdk.getComponent('login.LoginHeader');
- const LoginFooter = sdk.getComponent('login.LoginFooter');
- const LoginPage = sdk.getComponent('login.LoginPage');
+ const LoginHeader = sdk.getComponent('auth.LoginHeader');
+ const LoginFooter = sdk.getComponent('auth.LoginFooter');
+ const LoginPage = sdk.getComponent('auth.LoginPage');
const InteractiveAuth = sdk.getComponent('structures.InteractiveAuth');
const Spinner = sdk.getComponent("elements.Spinner");
- const ServerConfig = sdk.getComponent('views.login.ServerConfig');
+ const ServerConfig = sdk.getComponent('views.auth.ServerConfig');
let registerBody;
if (this.state.doingUIAuth) {
@@ -471,7 +471,7 @@ module.exports = React.createClass({
);
}
- const LanguageSelector = sdk.getComponent('structures.login.LanguageSelector');
+ const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector');
return (
diff --git a/src/components/views/login/CaptchaForm.js b/src/components/views/auth/CaptchaForm.js
similarity index 100%
rename from src/components/views/login/CaptchaForm.js
rename to src/components/views/auth/CaptchaForm.js
diff --git a/src/components/views/login/CountryDropdown.js b/src/components/views/auth/CountryDropdown.js
similarity index 100%
rename from src/components/views/login/CountryDropdown.js
rename to src/components/views/auth/CountryDropdown.js
diff --git a/src/components/views/login/CustomServerDialog.js b/src/components/views/auth/CustomServerDialog.js
similarity index 100%
rename from src/components/views/login/CustomServerDialog.js
rename to src/components/views/auth/CustomServerDialog.js
diff --git a/src/components/views/login/InteractiveAuthEntryComponents.js b/src/components/views/auth/InteractiveAuthEntryComponents.js
similarity index 99%
rename from src/components/views/login/InteractiveAuthEntryComponents.js
rename to src/components/views/auth/InteractiveAuthEntryComponents.js
index 73b46959b0..6a78898179 100644
--- a/src/components/views/login/InteractiveAuthEntryComponents.js
+++ b/src/components/views/auth/InteractiveAuthEntryComponents.js
@@ -187,7 +187,7 @@ export const RecaptchaAuthEntry = React.createClass({
return ;
}
- const CaptchaForm = sdk.getComponent("views.login.CaptchaForm");
+ const CaptchaForm = sdk.getComponent("views.auth.CaptchaForm");
const sitePublicKey = this.props.stageParams.public_key;
let errorSection;
diff --git a/src/components/views/login/LoginFooter.js b/src/components/views/auth/LoginFooter.js
similarity index 100%
rename from src/components/views/login/LoginFooter.js
rename to src/components/views/auth/LoginFooter.js
diff --git a/src/components/views/login/LoginHeader.js b/src/components/views/auth/LoginHeader.js
similarity index 100%
rename from src/components/views/login/LoginHeader.js
rename to src/components/views/auth/LoginHeader.js
diff --git a/src/components/views/login/LoginPage.js b/src/components/views/auth/LoginPage.js
similarity index 100%
rename from src/components/views/login/LoginPage.js
rename to src/components/views/auth/LoginPage.js
diff --git a/src/components/views/login/PasswordLogin.js b/src/components/views/auth/PasswordLogin.js
similarity index 99%
rename from src/components/views/login/PasswordLogin.js
rename to src/components/views/auth/PasswordLogin.js
index 59d4db379c..1d36c52a24 100644
--- a/src/components/views/login/PasswordLogin.js
+++ b/src/components/views/auth/PasswordLogin.js
@@ -201,7 +201,7 @@ class PasswordLogin extends React.Component {
disabled={disabled}
/>;
case PasswordLogin.LOGIN_FIELD_PHONE: {
- const CountryDropdown = sdk.getComponent('views.login.CountryDropdown');
+ const CountryDropdown = sdk.getComponent('views.auth.CountryDropdown');
classes.mx_Login_phoneNumberField = true;
classes.mx_Login_field_has_prefix = true;
classes.error = this.props.loginIncorrect && !this.state.phoneNumber;
diff --git a/src/components/views/login/RegistrationForm.js b/src/components/views/auth/RegistrationForm.js
similarity index 99%
rename from src/components/views/login/RegistrationForm.js
rename to src/components/views/auth/RegistrationForm.js
index 137aeada91..a0fc79b947 100644
--- a/src/components/views/login/RegistrationForm.js
+++ b/src/components/views/auth/RegistrationForm.js
@@ -323,7 +323,7 @@ module.exports = React.createClass({
}
}
- const CountryDropdown = sdk.getComponent('views.login.CountryDropdown');
+ const CountryDropdown = sdk.getComponent('views.auth.CountryDropdown');
let phoneSection;
if (!SdkConfig.get().disable_3pid_login) {
const phonePlaceholder = this._authStepIsRequired('m.login.msisdn') ? _t("Mobile phone number") : _t("Mobile phone number (optional)");
diff --git a/src/components/views/login/ServerConfig.js b/src/components/views/auth/ServerConfig.js
similarity index 98%
rename from src/components/views/login/ServerConfig.js
rename to src/components/views/auth/ServerConfig.js
index 2f04011273..57535e80d8 100644
--- a/src/components/views/login/ServerConfig.js
+++ b/src/components/views/auth/ServerConfig.js
@@ -138,7 +138,7 @@ module.exports = React.createClass({
},
showHelpPopup: function() {
- const CustomServerDialog = sdk.getComponent('login.CustomServerDialog');
+ const CustomServerDialog = sdk.getComponent('auth.CustomServerDialog');
Modal.createTrackedDialog('Custom Server Dialog', '', CustomServerDialog);
},
diff --git a/src/components/views/settings/AddPhoneNumber.js b/src/components/views/settings/AddPhoneNumber.js
index 82169c9868..27164e6517 100644
--- a/src/components/views/settings/AddPhoneNumber.js
+++ b/src/components/views/settings/AddPhoneNumber.js
@@ -141,7 +141,7 @@ export default withMatrixClient(React.createClass({
return ;
}
- const CountryDropdown = sdk.getComponent('views.login.CountryDropdown');
+ const CountryDropdown = sdk.getComponent('views.auth.CountryDropdown');
// XXX: This CSS relies on the CSS surrounding it in UserSettings as its in
// a tabular format to align the submit buttons
return (
diff --git a/src/stores/LifecycleStore.js b/src/stores/LifecycleStore.js
index 2ce3be5a33..fcdfe93cf9 100644
--- a/src/stores/LifecycleStore.js
+++ b/src/stores/LifecycleStore.js
@@ -22,8 +22,8 @@ const INITIAL_STATE = {
};
/**
- * A class for storing application state to do with login/registration. This is a simple
- * flux store that listens for actions and updates its state accordingly, informing any
+ * A class for storing application state to do with authentication. This is a simple flux
+ * store that listens for actions and updates its state accordingly, informing any
* listeners (views) of state changes.
*/
class LifecycleStore extends Store {
diff --git a/test/components/structures/login/Registration-test.js b/test/components/structures/auth/Registration-test.js
similarity index 98%
rename from test/components/structures/login/Registration-test.js
rename to test/components/structures/auth/Registration-test.js
index 7287bb0d95..4827bf4c12 100644
--- a/test/components/structures/login/Registration-test.js
+++ b/test/components/structures/auth/Registration-test.js
@@ -23,7 +23,7 @@ const expect = require('expect');
const testUtils = require('test-utils');
const sdk = require('matrix-react-sdk');
-const Registration = sdk.getComponent('structures.login.Registration');
+const Registration = sdk.getComponent('structures.auth.Registration');
let rtsClient;
let client;
diff --git a/test/components/views/login/RegistrationForm-test.js b/test/components/views/auth/RegistrationForm-test.js
similarity index 97%
rename from test/components/views/login/RegistrationForm-test.js
rename to test/components/views/auth/RegistrationForm-test.js
index 2d1c1be026..265f158bb9 100644
--- a/test/components/views/login/RegistrationForm-test.js
+++ b/test/components/views/auth/RegistrationForm-test.js
@@ -23,7 +23,7 @@ const expect = require('expect');
const testUtils = require('test-utils');
const sdk = require('matrix-react-sdk');
-const RegistrationForm = sdk.getComponent('views.login.RegistrationForm');
+const RegistrationForm = sdk.getComponent('views.auth.RegistrationForm');
const TEAM_CONFIG = {
supportEmail: "support@some.domain",