diff --git a/res/css/structures/auth/_Login.scss b/res/css/structures/auth/_Login.scss
index 09af69183b..c32f70a696 100644
--- a/res/css/structures/auth/_Login.scss
+++ b/res/css/structures/auth/_Login.scss
@@ -69,43 +69,12 @@ limitations under the License.
margin-right: 10px;
}
-.mx_Login_create {
- display: block;
- text-align: center;
- width: 100%;
- font-size: 13px;
- opacity: 0.8;
-}
-
-.mx_Login_create:link {
- color: $primary-fg-color;
-}
-
-.mx_Login_prompt {
- padding-top: 15px;
- padding-bottom: 15px;
- font-size: 13px;
-}
-
-.mx_Login_forgot {
- font-size: 15px;
-}
-
-.mx_Login_forgot:link {
- color: $primary-fg-color;
-}
-
.mx_Login_sso_link {
display: block;
text-align: center;
- font-size: 15px;
margin-bottom: 20px;
}
-.mx_Login_sso_link:link {
- color: $primary-fg-color;
-}
-
.mx_Login_loader {
display: inline;
position: relative;
diff --git a/res/css/views/auth/_AuthBody.scss b/res/css/views/auth/_AuthBody.scss
index 97632c2e3f..cb28d57801 100644
--- a/res/css/views/auth/_AuthBody.scss
+++ b/res/css/views/auth/_AuthBody.scss
@@ -20,4 +20,19 @@ limitations under the License.
border-radius: 0 4px 4px 0;
padding: 25px 60px;
box-sizing: border-box;
+ font-size: 12px;
+ color: $authpage-body-color;
+}
+
+.mx_AuthBody a:link,
+.mx_AuthBody a:hover,
+.mx_AuthBody a:visited {
+ color: $accent-color;
+ text-decoration: none;
+}
+
+.mx_Auth_changeFlow {
+ display: block;
+ text-align: center;
+ width: 100%;
}
diff --git a/res/css/views/auth/_AuthPage.scss b/res/css/views/auth/_AuthPage.scss
index 9e32750771..04dab59ed6 100644
--- a/res/css/views/auth/_AuthPage.scss
+++ b/res/css/views/auth/_AuthPage.scss
@@ -24,9 +24,9 @@ limitations under the License.
}
.mx_AuthPage h2 {
- font-weight: 300;
- margin-top: 32px;
- margin-bottom: 20px;
+ font-size: 24px;
+ font-weight: 600;
+ margin-top: 8px;
}
.mx_AuthPage_modal {
diff --git a/res/themes/dharma/css/_dharma.scss b/res/themes/dharma/css/_dharma.scss
index 22aa018b5e..e30d6f0000 100644
--- a/res/themes/dharma/css/_dharma.scss
+++ b/res/themes/dharma/css/_dharma.scss
@@ -217,6 +217,7 @@ $authpage-bg-color: #2e3649;
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
$authpage-body-bg-color: #ffffff;
$authpage-lang-color: #4e5054;
+$authpage-body-color: #61708b;
/*** form elements ***/
diff --git a/res/themes/light/css/_base.scss b/res/themes/light/css/_base.scss
index 438ab69856..0f0a2639fa 100644
--- a/res/themes/light/css/_base.scss
+++ b/res/themes/light/css/_base.scss
@@ -213,6 +213,7 @@ $authpage-bg-color: #2e3649;
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
$authpage-body-bg-color: #ffffff;
$authpage-lang-color: #4e5054;
+$authpage-body-color: #61708b;
// ***** Mixins! *****
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index 4c783eedac..d5ad130edd 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1955,7 +1955,6 @@ export default React.createClass({
customHsUrl={this.getCurrentHsUrl()}
customIsUrl={this.getCurrentIsUrl()}
onComplete={this.onLoginClick}
- onRegisterClick={this.onRegisterClick}
onLoginClick={this.onLoginClick} />
);
}
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index b2dc2a47eb..73d9f95e20 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -34,7 +34,6 @@ module.exports = React.createClass({
customHsUrl: PropTypes.string,
customIsUrl: PropTypes.string,
onLoginClick: PropTypes.func,
- onRegisterClick: PropTypes.func,
onComplete: PropTypes.func.isRequired,
// The default server name to use when the user hasn't specified
@@ -168,12 +167,6 @@ module.exports = React.createClass({
this.props.onLoginClick();
},
- onRegisterClick: function(ev) {
- ev.preventDefault();
- ev.stopPropagation();
- this.props.onRegisterClick();
- },
-
showErrorDialog: function(body, title) {
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createTrackedDialog('Forgot Password Error', '', ErrorDialog, {
@@ -195,7 +188,7 @@ module.exports = React.createClass({
resetPasswordJsx = ;
} else if (this.state.progress === "sent_email") {
resetPasswordJsx = (
-
+
{ _t("An email has been sent to %(emailAddress)s. Once you've followed the link it contains, " +
"click below.", { emailAddress: this.state.email }) }
@@ -205,7 +198,7 @@ module.exports = React.createClass({
);
} else if (this.state.progress === "complete") {
resetPasswordJsx = (
-
+
{ _t('Your password has been reset') }.
{ _t('You have been logged out of all devices and will no longer receive push notifications. ' +
'To re-enable notifications, sign in again on each device') }.
@@ -236,9 +229,9 @@ module.exports = React.createClass({
resetPasswordJsx = (
-
+
{ _t('To reset your password, enter the email address linked to your account') }:
-
+
@@ -279,6 +269,7 @@ module.exports = React.createClass({
+ { _t('Set a new password') }
{resetPasswordJsx}
diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js
index 28c4a3e960..cac17554c8 100644
--- a/src/components/structures/auth/Login.js
+++ b/src/components/structures/auth/Login.js
@@ -526,7 +526,7 @@ module.exports = React.createClass({
let loginAsGuestJsx;
if (this.props.enableGuest) {
loginAsGuestJsx =
-
+
{ _t('Try the app first') }
;
}
@@ -544,8 +544,6 @@ module.exports = React.createClass({
delayTimeMs={1000} />;
}
- const header =
{ _t('Sign in') } { loader }
;
-
let errorTextSection;
if (errorText) {
errorTextSection = (
@@ -559,12 +557,15 @@ module.exports = React.createClass({
- { header }
+
+ {_t('Sign in to your account')}
+ {loader}
+
{ errorTextSection }
{ this.componentForStep(this.state.currentFlow) }
{ serverConfig }
-
- { _t('Create an account') }
+
+ { _t('Create account') }
{ loginAsGuestJsx }
diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js
index fb913b22e1..8abd4073fe 100644
--- a/src/components/structures/auth/Registration.js
+++ b/src/components/structures/auth/Registration.js
@@ -457,7 +457,6 @@ module.exports = React.createClass({
let errorText;
const err = this.state.errorText || this.props.defaultServerDiscoveryError;
- const header = { _t('Create an account') }
;
if (err) {
errorText = { err }
;
}
@@ -465,8 +464,8 @@ module.exports = React.createClass({
let signIn;
if (!this.state.doingUIAuth) {
signIn = (
-
- { _t('I already have an account') }
+
+ { _t('Sign in instead') }
);
}
@@ -480,7 +479,7 @@ module.exports = React.createClass({
null}
/>
- { header }
+ { _t('Create your account') }
{ registerBody }
{ signIn }
{ errorText }
diff --git a/src/components/views/auth/PasswordLogin.js b/src/components/views/auth/PasswordLogin.js
index 1d36c52a24..26baabec5c 100644
--- a/src/components/views/auth/PasswordLogin.js
+++ b/src/components/views/auth/PasswordLogin.js
@@ -245,11 +245,16 @@ class PasswordLogin extends React.Component {
let forgotPasswordJsx;
if (this.props.onForgotPasswordClick) {
- forgotPasswordJsx = (
-
- { _t('Forgot your password?') }
-
- );
+ forgotPasswordJsx =
+ {_t('Not sure of your password? Set a new one', {}, {
+ a: sub =>
+ {sub}
+ ,
+ })}
+ ;
}
let matrixIdText = _t('Matrix ID');
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 6bf857be07..ccb45eac24 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -431,6 +431,7 @@
"Encrypted by an unverified device": "Encrypted by an unverified device",
"Unencrypted message": "Unencrypted message",
"Please select the destination room for this message": "Please select the destination room for this message",
+ "Scroll to bottom of page": "Scroll to bottom of page",
"Blacklisted": "Blacklisted",
"Verified": "Verified",
"Unverified": "Unverified",
@@ -1065,6 +1066,8 @@
"Set status": "Set status",
"Set a new status...": "Set a new status...",
"View Community": "View Community",
+ "Login": "Login",
+ "powered by Matrix": "powered by Matrix",
"Robot check is currently unavailable on desktop - please use a web browser": "Robot check is currently unavailable on desktop - please use a web browser",
"This Home Server would like to make sure you are not a robot": "This Home Server would like to make sure you are not a robot",
"Custom Server Options": "Custom Server Options",
@@ -1082,7 +1085,6 @@
"Please enter the code it contains:": "Please enter the code it contains:",
"Code": "Code",
"Start authentication": "Start authentication",
- "powered by Matrix": "powered by Matrix",
"The email field must not be blank.": "The email field must not be blank.",
"The user name field must not be blank.": "The user name field must not be blank.",
"The phone number field must not be blank.": "The phone number field must not be blank.",
@@ -1090,7 +1092,7 @@
"Username on %(hs)s": "Username on %(hs)s",
"User name": "User name",
"Mobile phone number": "Mobile phone number",
- "Forgot your password?": "Forgot your password?",
+ "Not sure of your password? Set a new one": "Not sure of your password? Set a new one",
"%(serverName)s Matrix ID": "%(serverName)s Matrix ID",
"Sign in with": "Sign in with",
"Sign in": "Sign in",
@@ -1155,7 +1157,6 @@
"Couldn't load home page": "Couldn't load home page",
"You are currently using Riot anonymously as a guest.": "You are currently using Riot anonymously as a guest.",
"If you would like to create a Matrix account you can register now.": "If you would like to create a Matrix account you can register now.",
- "Login": "Login",
"Invalid configuration: Cannot supply a default homeserver URL and a default server name": "Invalid configuration: Cannot supply a default homeserver URL and a default server name",
"Failed to reject invitation": "Failed to reject invitation",
"This room is not public. You will not be able to rejoin without an invite.": "This room is not public. You will not be able to rejoin without an invite.",
@@ -1197,7 +1198,6 @@
"Directory": "Directory",
"Search for a room": "Search for a room",
"#example": "#example",
- "Scroll to bottom of page": "Scroll to bottom of page",
"Message not sent due to unknown devices being present": "Message not sent due to unknown devices being present",
"Show devices, send anyway or cancel.": "Show devices, send anyway or cancel.",
"You can't send any messages until you review and agree to our terms and conditions.": "You can't send any messages until you review and agree to our terms and conditions.",
@@ -1209,8 +1209,6 @@
"%(count)s Resend all or cancel all now. You can also select individual messages to resend or cancel.|one": "Resend message or cancel message now.",
"Connectivity to the server has been lost.": "Connectivity to the server has been lost.",
"Sent messages will be stored until your connection has returned.": "Sent messages will be stored until your connection has returned.",
- "%(count)s new messages|other": "%(count)s new messages",
- "%(count)s new messages|one": "%(count)s new message",
"Active call": "Active call",
"There's no one else here! Would you like to invite others or stop warning about the empty room?": "There's no one else here! Would you like to invite others or stop warning about the empty room?",
"You seem to be uploading files, are you sure you want to quit?": "You seem to be uploading files, are you sure you want to quit?",
@@ -1318,7 +1316,8 @@
"New password": "New password",
"Confirm your new password": "Confirm your new password",
"Send Reset Email": "Send Reset Email",
- "Create an account": "Create an account",
+ "Sign in instead": "Sign in instead",
+ "Set a new password": "Set a new password",
"Invalid homeserver discovery response": "Invalid homeserver discovery response",
"Invalid identity server discovery response": "Invalid identity server discovery response",
"General failure": "General failure",
@@ -1336,6 +1335,8 @@
"Can't connect to homeserver - please check your connectivity, ensure your homeserver's SSL certificate is trusted, and that a browser extension is not blocking requests.": "Can't connect to homeserver - please check your connectivity, ensure your homeserver's SSL certificate is trusted, and that a browser extension is not blocking requests.",
"Sign in with single sign-on": "Sign in with single sign-on",
"Try the app first": "Try the app first",
+ "Sign in to your account": "Sign in to your account",
+ "Create account": "Create account",
"Failed to fetch avatar URL": "Failed to fetch avatar URL",
"Set a display name:": "Set a display name:",
"Upload an avatar:": "Upload an avatar:",
@@ -1350,7 +1351,7 @@
"A phone number is required to register on this homeserver.": "A phone number is required to register on this homeserver.",
"You need to enter a user name.": "You need to enter a user name.",
"An unknown error occurred.": "An unknown error occurred.",
- "I already have an account": "I already have an account",
+ "Create your account": "Create your account",
"Commands": "Commands",
"Results from DuckDuckGo": "Results from DuckDuckGo",
"Emoji": "Emoji",