mirror of https://github.com/vector-im/riot-web
Enable phases for login, but start on the login phase by default
parent
4e152f82e7
commit
dbe14c5527
|
@ -31,13 +31,13 @@ import { AutoDiscovery } from "matrix-js-sdk";
|
||||||
const PHONE_NUMBER_REGEX = /^[0-9()\-\s]*$/;
|
const PHONE_NUMBER_REGEX = /^[0-9()\-\s]*$/;
|
||||||
|
|
||||||
// Phases
|
// Phases
|
||||||
// Show controls to configure server details
|
|
||||||
const PHASE_SERVER_DETAILS = 0;
|
|
||||||
// Show the appropriate login flow(s) for the server
|
// Show the appropriate login flow(s) for the server
|
||||||
const PHASE_LOGIN = 1;
|
const PHASE_LOGIN = 0;
|
||||||
|
// Show controls to configure server details
|
||||||
|
const PHASE_SERVER_DETAILS = 1;
|
||||||
|
|
||||||
// Disable phases for now, pending UX discussion on WK discovery
|
// Enable phases for login
|
||||||
const PHASES_ENABLED = false;
|
const PHASES_ENABLED = true;
|
||||||
|
|
||||||
// These are used in several places, and come from the js-sdk's autodiscovery
|
// These are used in several places, and come from the js-sdk's autodiscovery
|
||||||
// stuff. We define them here so that they'll be picked up by i18n.
|
// stuff. We define them here so that they'll be picked up by i18n.
|
||||||
|
@ -95,7 +95,7 @@ module.exports = React.createClass({
|
||||||
phoneNumber: "",
|
phoneNumber: "",
|
||||||
|
|
||||||
// Phase of the overall login dialog.
|
// Phase of the overall login dialog.
|
||||||
phase: PHASE_SERVER_DETAILS,
|
phase: PHASE_LOGIN,
|
||||||
// The current login flow, such as password, SSO, etc.
|
// The current login flow, such as password, SSO, etc.
|
||||||
currentFlow: "m.login.password",
|
currentFlow: "m.login.password",
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue