Skip to content

Commit

Permalink
パスワードの複雑性の向上
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 committed Mar 26, 2024
1 parent 26a6e88 commit cb20131
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public function testUpdatePassword()

$passwordRequest = $this->service->get(3);
$this->assertNotEmpty($this->service->updatePassword($passwordRequest, [
'password_1' => 'testtest',
'password_2' => 'testtest'
'password_1' => 'Testtest1234',
'password_2' => 'Testtest1234'
]));

$passwordRequest = $this->service->PasswordRequests
Expand All @@ -101,12 +101,12 @@ public function testUpdatePassword()

$this->assertNotEquals($beforePassword, $afterPassword);

// 変更後のパスワードでログインw
// 変更後のパスワードでログイン
$this->enableSecurityToken();
$this->enableCsrfToken();
$this->post(Configure::read('BcPrefixAuth.Admin.loginAction'), [
'email' => '[email protected]',
'password' => 'testtest'
'password' => 'Testtest1234'
]);
$this->assertSession(1, 'AuthAdmin.id');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public function testCreate()
],
'email' => '[email protected]',
'real_name_1' => 'test',
'password_1' => 'aaaaaaaaaaaaaa',
'password_2' => 'aaaaaaaaaaaaaa'
'password_1' => 'Testtest1234',
'password_2' => 'Testtest1234'
]);
$request = $request->withData('password', $request->getData('password_1'));
$this->Users->create($request->getData());
Expand Down
8 changes: 7 additions & 1 deletion plugins/bc-admin-third/webroot/css/admin/style.css

Large diffs are not rendered by default.

0 comments on commit cb20131

Please sign in to comment.