mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Add missing autocomplete attributes to input fields (#3088)
* Add missing autocomplete attributes to input fields * Add autocomplete attributes to password fields * Attribute should use new-password
This commit is contained in:
parent
a65488000c
commit
0a7e885eab
|
@ -77,6 +77,7 @@ export default class ChangeEmailModal extends Modal {
|
||||||
type="password"
|
type="password"
|
||||||
name="password"
|
name="password"
|
||||||
className="FormControl"
|
className="FormControl"
|
||||||
|
autocomplete="current-password"
|
||||||
placeholder={app.translator.trans('core.forum.change_email.confirm_password_placeholder')}
|
placeholder={app.translator.trans('core.forum.change_email.confirm_password_placeholder')}
|
||||||
bidi={this.password}
|
bidi={this.password}
|
||||||
disabled={this.loading}
|
disabled={this.loading}
|
||||||
|
|
|
@ -83,6 +83,7 @@ export default class LogInModal extends Modal {
|
||||||
className="FormControl"
|
className="FormControl"
|
||||||
name="password"
|
name="password"
|
||||||
type="password"
|
type="password"
|
||||||
|
autocomplete="current-password"
|
||||||
placeholder={extractText(app.translator.trans('core.forum.log_in.password_placeholder'))}
|
placeholder={extractText(app.translator.trans('core.forum.log_in.password_placeholder'))}
|
||||||
bidi={this.password}
|
bidi={this.password}
|
||||||
disabled={this.loading}
|
disabled={this.loading}
|
||||||
|
|
|
@ -104,6 +104,7 @@ export default class SignUpModal extends Modal {
|
||||||
className="FormControl"
|
className="FormControl"
|
||||||
name="password"
|
name="password"
|
||||||
type="password"
|
type="password"
|
||||||
|
autocomplete="new-password"
|
||||||
placeholder={extractText(app.translator.trans('core.forum.sign_up.password_placeholder'))}
|
placeholder={extractText(app.translator.trans('core.forum.sign_up.password_placeholder'))}
|
||||||
bidi={this.password}
|
bidi={this.password}
|
||||||
disabled={this.loading}
|
disabled={this.loading}
|
||||||
|
|
|
@ -19,11 +19,11 @@
|
||||||
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
|
<input type="hidden" name="passwordToken" value="{{ $passwordToken }}">
|
||||||
|
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
<input type="password" class="form-control" name="password" placeholder="{{ $translator->trans('core.views.reset_password.new_password_label') }}">
|
<input type="password" class="form-control" name="password" autocomplete="new-password" placeholder="{{ $translator->trans('core.views.reset_password.new_password_label') }}">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
<input type="password" class="form-control" name="password_confirmation" placeholder="{{ $translator->trans('core.views.reset_password.confirm_password_label') }}">
|
<input type="password" class="form-control" name="password_confirmation" autocomplete="new-password" placeholder="{{ $translator->trans('core.views.reset_password.confirm_password_label') }}">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="form-group">
|
<p class="form-group">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user