Skip to content

Commit 129fdd5

Browse files
authored
feat(auth): mark password property with #[SensitiveParameter] (#1693)
1 parent 94db3bd commit 129fdd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/2-features/04-authentication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ final class User implements Authenticatable
3838
public function __construct(
3939
public string $email,
4040
#[Hashed]
41+
#[\SensitiveParameter]
4142
public ?string $password,
4243
) {}
4344
}

packages/auth/src/Installer/basic-user/UserModel.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ final class UserModel implements Authenticatable
1515
public function __construct(
1616
public string $email,
1717
#[Hashed]
18+
#[\SensitiveParameter]
1819
public ?string $password,
1920
) {}
2021
}

0 commit comments

Comments
 (0)