Skip to content

Commit

Permalink
【ユーザー】編集画面でパスワード欄が自動入力されてしまう問題を改善 fix #1497
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Jun 16, 2020
1 parent e13c399 commit 71c379c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/webroot/theme/admin-third/Users/admin/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
</th>
<td class="col-input bca-form-table__input">
<?php if ($this->request->action == "admin_edit"): ?><small>[<?php echo __d('baser', 'パスワードは変更する場合のみ入力してください') ?>]</small><br /><?php endif ?>
<!-- ↓↓↓自動入力を防止する為のダミーフィールド↓↓↓ -->
<input type="password" name="dummypass" style="top:-100px;left:-100px;position:fixed;" />
<?php echo $this->BcForm->input('User.password_1', ['type' => 'password', 'size' => 20, 'maxlength' => 255]) ?>
<?php echo $this->BcForm->input('User.password_2', ['type' => 'password', 'size' => 20, 'maxlength' => 255]) ?>
<i class="bca-icon--question-circle btn help bca-help"></i>
Expand Down

0 comments on commit 71c379c

Please sign in to comment.