Skip to content

Commit

Permalink
fix: protect password from being serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe authored and RomainLanz committed May 17, 2024
1 parent b5a8d3a commit c1ea58a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/auth/stubs/make/model/user_with_access_tokens.stub
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class {{ modelName }} extends compose(BaseModel, AuthFinder) {
@column()
declare email: string

@column()
@column({ serializeAs: null })
declare password: string

@column.dateTime({ autoCreate: true })
Expand Down
2 changes: 1 addition & 1 deletion src/auth/stubs/make/model/user_with_basic_auth.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class {{ modelName }} extends compose(BaseModel, AuthFinder) {
@column()
declare email: string

@column()
@column({ serializeAs: null })
declare password: string

@column.dateTime({ autoCreate: true })
Expand Down
2 changes: 1 addition & 1 deletion src/auth/stubs/make/model/user_with_session.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class {{ modelName }} extends compose(BaseModel, AuthFinder) {
@column()
declare email: string

@column()
@column({ serializeAs: null })
declare password: string

@column.dateTime({ autoCreate: true })
Expand Down

0 comments on commit c1ea58a

Please sign in to comment.