mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
📋 refactor: allow paste in confirm field when resetting passwords (#2542)
* Disabled paste prevention in the confirm password field when resetting passwords. * chore(ResetPassword): remove comments --------- Co-authored-by: Danny Avila <danacordially@gmail.com>
This commit is contained in:
parent
5b5f9b950b
commit
4d0806d3e8
1 changed files with 0 additions and 5 deletions
|
|
@ -139,11 +139,6 @@ function ResetPassword() {
|
||||||
type="password"
|
type="password"
|
||||||
id="confirm_password"
|
id="confirm_password"
|
||||||
aria-label={localize('com_auth_password_confirm')}
|
aria-label={localize('com_auth_password_confirm')}
|
||||||
// uncomment to prevent pasting in confirm field
|
|
||||||
onPaste={(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
return false;
|
|
||||||
}}
|
|
||||||
{...register('confirm_password', {
|
{...register('confirm_password', {
|
||||||
validate: (value) =>
|
validate: (value) =>
|
||||||
value === password || localize('com_auth_password_not_match'),
|
value === password || localize('com_auth_password_not_match'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue