From 7e52319bb67dfde56fe607d7141b2f61e68b1cc5 Mon Sep 17 00:00:00 2001 From: Daniil Senkiv Date: Mon, 9 Sep 2019 11:13:10 +0300 Subject: [PATCH 1/2] Web.Client: used const for input width, for attr 'name' of password field --- .../src/components/pages/Confirm/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/ASC.Web.Client/src/components/pages/Confirm/index.js b/web/ASC.Web.Client/src/components/pages/Confirm/index.js index 1b75305f4b..51e9d62183 100644 --- a/web/ASC.Web.Client/src/components/pages/Confirm/index.js +++ b/web/ASC.Web.Client/src/components/pages/Confirm/index.js @@ -6,6 +6,8 @@ import { Button, TextInput, PageLayout, Text, PasswordInput, FieldContainer, toa import styled from 'styled-components'; import { welcomePageTitle } from './../../../helpers/customNames'; +const inputWidth = '400px'; + const ConfirmContainer = styled.div` display: flex; flex-direction: column; @@ -34,7 +36,7 @@ const ConfirmContainer = styled.div` input { - width: 400px; + width: ${inputWidth}; } } @@ -51,6 +53,7 @@ const passwordSettings = { }; const emailInputName = 'email'; +const passwordInputName = 'password'; const isLoaded = true; @@ -95,7 +98,7 @@ const Confirm = (props) => { hasError = true; setEmailValid(!hasError); } - const passwordValue = (document.getElementsByName('password')[0].value); + const passwordValue = (document.getElementsByName(passwordInputName)[0].value); if (!passwordValue || !passwordValid) { hasError = true; setPasswordValid(!hasError); @@ -218,7 +221,7 @@ const Confirm = (props) => { { scale={true} tabIndex={4} maxLength={30} - inputWidth='400px' + inputWidth={inputWidth} hasError={!passwordValid} onChange={event => { setPassword(event.target.value); From 8629a15679f3530ad3c96453df1638de15fcdb6d Mon Sep 17 00:00:00 2001 From: Daniil Senkiv Date: Mon, 9 Sep 2019 15:07:15 +0300 Subject: [PATCH 2/2] Web.Core: CommonLinkUtility: fixed --- web/ASC.Web.Core/Utility/CommonLinkUtility.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ASC.Web.Core/Utility/CommonLinkUtility.cs b/web/ASC.Web.Core/Utility/CommonLinkUtility.cs index 5231f0d1dc..34c907418d 100644 --- a/web/ASC.Web.Core/Utility/CommonLinkUtility.cs +++ b/web/ASC.Web.Core/Utility/CommonLinkUtility.cs @@ -519,12 +519,12 @@ namespace ASC.Web.Studio.Utility if (!string.IsNullOrEmpty(email)) { - link += $"email={HttpUtility.UrlEncode(email)}"; + link += $"&email={HttpUtility.UrlEncode(email)}"; } if (userId != default) { - link += $"uid={userId}"; + link += $"&uid={userId}"; } if (postfix != null)