From ccf7e75c951fdda78de1bad15d4f0777653c0495 Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Wed, 6 Feb 2019 15:10:16 +0000
Subject: [PATCH 01/15] Group fields into rows on reset password
---
.../structures/auth/ForgotPassword.js | 39 ++++++++++---------
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index 7b7a700d60e..e49d4a9d78e 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -1,6 +1,6 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
-Copyright 2017, 2018 New Vector Ltd
+Copyright 2017, 2018, 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -233,24 +233,25 @@ module.exports = React.createClass({
{ serverConfigSection }
From 5d0798ed24b6ac5d06f0b0403f0e0bb0a19c9870 Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Wed, 6 Feb 2019 15:16:54 +0000
Subject: [PATCH 02/15] Tweak field labels on reset password
---
src/components/structures/auth/ForgotPassword.js | 6 +++---
src/i18n/strings/en_EN.json | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index e49d4a9d78e..56f43b9ffa0 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -238,19 +238,19 @@ module.exports = React.createClass({
name="reset_email" // define a name so browser's password autofill gets less confused
value={this.state.email}
onChange={this.onInputChanged.bind(this, "email")}
- placeholder={_t('Email address')} autoFocus />
+ placeholder={_t('Email')} autoFocus />
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 9e5b32f24c8..02c29778bb6 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1380,8 +1380,6 @@
"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": "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",
"Return to login screen": "Return to login screen",
"To reset your password, enter the email address linked to your account": "To reset your password, enter the email address linked to your account",
- "New password": "New password",
- "Confirm your new password": "Confirm your new password",
"Send Reset Email": "Send Reset Email",
"Sign in instead": "Sign in instead",
"Set a new password": "Set a new password",
From 8c6dc002f3e1384f20a7966cd91a9a747ecd92a3 Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Wed, 6 Feb 2019 15:46:25 +0000
Subject: [PATCH 03/15] Add new footer text to reset password
---
.../structures/auth/ForgotPassword.js | 70 +++++++++----------
src/i18n/strings/en_EN.json | 2 +-
2 files changed, 34 insertions(+), 38 deletions(-)
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index 56f43b9ffa0..1e8d223bdbe 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -226,45 +226,41 @@ module.exports = React.createClass({
errorText =
{ err }
;
}
- resetPasswordJsx = (
-
-
- { _t('To reset your password, enter the email address linked to your account') }:
-
;
}
-
return (
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 02c29778bb6..1c607be0d7f 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1379,7 +1379,7 @@
"Your password has been reset": "Your password has been reset",
"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": "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",
"Return to login screen": "Return to login screen",
- "To reset your password, enter the email address linked to your account": "To reset your password, enter the email address linked to your account",
+ "A verification email will be sent to your inbox to confirm setting your new password.": "A verification email will be sent to your inbox to confirm setting your new password.",
"Send Reset Email": "Send Reset Email",
"Sign in instead": "Sign in instead",
"Set a new password": "Set a new password",
From 8e12c4a3b8bc68ec6067305a9eae4d77f0656d29 Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Wed, 6 Feb 2019 15:58:31 +0000
Subject: [PATCH 04/15] Normalize URL naming for reset password
---
src/components/structures/auth/ForgotPassword.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index 1e8d223bdbe..9583fac270e 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -47,8 +47,8 @@ module.exports = React.createClass({
getInitialState: function() {
return {
- enteredHomeserverUrl: this.props.customHsUrl || this.props.defaultHsUrl,
- enteredIdentityServerUrl: this.props.customIsUrl || this.props.defaultIsUrl,
+ enteredHsUrl: this.props.customHsUrl || this.props.defaultHsUrl,
+ enteredIsUrl: this.props.customIsUrl || this.props.defaultIsUrl,
progress: null,
password: null,
password2: null,
@@ -126,7 +126,7 @@ module.exports = React.createClass({
onFinished: (confirmed) => {
if (confirmed) {
this.submitPasswordReset(
- this.state.enteredHomeserverUrl, this.state.enteredIdentityServerUrl,
+ this.state.enteredHsUrl, this.state.enteredIsUrl,
this.state.email, this.state.password,
);
}
@@ -153,10 +153,10 @@ module.exports = React.createClass({
onServerConfigChange: function(config) {
const newState = {};
if (config.hsUrl !== undefined) {
- newState.enteredHomeserverUrl = config.hsUrl;
+ newState.enteredHsUrl = config.hsUrl;
}
if (config.isUrl !== undefined) {
- newState.enteredIdentityServerUrl = config.isUrl;
+ newState.enteredIsUrl = config.isUrl;
}
this.setState(newState);
},
From 8aff6b2e453e01141558666df55086fca27510e1 Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Wed, 6 Feb 2019 16:14:21 +0000
Subject: [PATCH 05/15] Add your account header to reset password
---
src/components/structures/auth/ForgotPassword.js | 13 +++++++++++++
src/i18n/strings/en_EN.json | 2 ++
2 files changed, 15 insertions(+)
diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js
index 9583fac270e..a2ed97d1cf6 100644
--- a/src/components/structures/auth/ForgotPassword.js
+++ b/src/components/structures/auth/ForgotPassword.js
@@ -226,7 +226,20 @@ module.exports = React.createClass({
errorText =