mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-02-17 07:48:16 +05:30
Добавлен вывод введённого пользователем ника\мыла в форму восстановления пароля
Поправлен цвет ссылок в error message формы входа Убрана ссылка на восстановление пароля с формы ввода ника\мыла
This commit is contained in:
parent
6ca594cf65
commit
0236329302
@ -20,6 +20,8 @@ class Body extends BaseAuthBody {
|
|||||||
|
|
||||||
// Если юзер вводил своё мыло во время попытки авторизации, то почему бы его сюда автоматически не подставить?
|
// Если юзер вводил своё мыло во время попытки авторизации, то почему бы его сюда автоматически не подставить?
|
||||||
render() {
|
render() {
|
||||||
|
const {user} = this.context;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{this.renderErrors()}
|
{this.renderErrors()}
|
||||||
@ -33,16 +35,14 @@ class Body extends BaseAuthBody {
|
|||||||
color="lightViolet"
|
color="lightViolet"
|
||||||
required
|
required
|
||||||
placeholder={messages.accountEmail}
|
placeholder={messages.accountEmail}
|
||||||
|
defaultValue={user.email || user.username || ''}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p>TODO: тут ещё должна быть капча</p>
|
|
||||||
<p>TODO: эту страницу пока что не имплементим</p>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onFormSubmit() {
|
onFormSubmit() {
|
||||||
// TODO: обработчик отправки письма с инструкцией по смене аккаунта
|
// TODO: обработчик отправки письма с инструкцией по смене пароля
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,9 +46,7 @@ export default function Login() {
|
|||||||
</button>
|
</button>
|
||||||
),
|
),
|
||||||
Links: () => (
|
Links: () => (
|
||||||
<Link to="/forgot-password">
|
<span/>
|
||||||
<Message {...passwordMessages.forgotPassword} />
|
|
||||||
</Link>
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,10 @@ class Body extends BaseAuthBody {
|
|||||||
placeholder={messages.accountPassword}
|
placeholder={messages.accountPassword}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Checkbox {...this.bindField('rememberMe')} label={<Message {...messages.rememberMe} />} />
|
<Checkbox {...this.bindField('rememberMe')}
|
||||||
|
defaultChecked={true}
|
||||||
|
label={<Message {...messages.rememberMe} />}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -54,11 +54,6 @@ $bodyTopBottomPadding: 15px;
|
|||||||
border-bottom: 1px dotted rgba(#fff, 0.75);
|
border-bottom: 1px dotted rgba(#fff, 0.75);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: .25s;
|
transition: .25s;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
text-shadow: 0 0 1px #fff;
|
|
||||||
border-bottom-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,8 +97,8 @@ $bodyTopBottomPadding: 15px;
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #fff;
|
text-shadow: 0 0 1px #fff;
|
||||||
opacity: 0.7;
|
border-bottom-color: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user