mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Set appropriate autocomplete attributes for password reset
- make autocomplete set to `current-password` and `new-password` for password resets - fixes #198
This commit is contained in:
@@ -108,6 +108,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
|
||||
register={register}
|
||||
showOverline
|
||||
error={errors.new_password?.message}
|
||||
autoComplete="new-password"
|
||||
/>
|
||||
)}
|
||||
{field === "username" && (
|
||||
@@ -124,6 +125,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
|
||||
register={register}
|
||||
showOverline
|
||||
error={errors.current_password?.message}
|
||||
autoComplete="current-password"
|
||||
/>
|
||||
{error && (
|
||||
<Overline type="error" error={error}>
|
||||
|
||||
Reference in New Issue
Block a user