-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact(security/auth-module): removing tokens, password, and password…
…-reset related code
- Loading branch information
Showing
98 changed files
with
272 additions
and
1,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
libs/core/security/src/lib/authentication/application/commands/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
export * from './request-password-reset'; | ||
export * from './verify-password-reset-attempt'; | ||
export * from './reset-password'; | ||
export * from './signup'; | ||
export * from './signin'; |
2 changes: 0 additions & 2 deletions
2
...core/security/src/lib/authentication/application/commands/request-password-reset/index.ts
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...pplication/commands/request-password-reset/request-user-password-reset.command-handler.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...cation/application/commands/request-password-reset/request-user-password-reset.command.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
libs/core/security/src/lib/authentication/application/commands/reset-password/index.ts
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
.../lib/authentication/application/commands/reset-password/reset-password.command-handler.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...rity/src/lib/authentication/application/commands/reset-password/reset-password.command.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 20 additions & 16 deletions
36
libs/core/security/src/lib/authentication/application/commands/signup/signup.command.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import { Command, CommandProps } from '@goran/common'; | ||
import { Command, CommandProps, Optional } from '@goran/common'; | ||
import { ClientInfoDto } from '../../dtos'; | ||
|
||
/** | ||
* Signup - User Registration | ||
* | ||
* @param fullname | ||
* @param username | ||
* @param password | ||
* @param email | ||
* @param {Optional<string>} fullname | ||
* @param {string} username | ||
* @param {string} password | ||
* @param {string} email | ||
* @param {ClientInfoDto} clientInfo @readonly | ||
*/ | ||
export class SignupCommand extends Command { | ||
readonly email: string; | ||
readonly fullname?: string | null; | ||
readonly username: string; | ||
readonly password: string; | ||
readonly email: string; | ||
readonly fullname: Optional<string>; | ||
readonly username: string; | ||
readonly password: string; | ||
readonly clientInfo: ClientInfoDto; | ||
|
||
constructor(props: CommandProps<SignupCommand>) { | ||
super(props); | ||
this.fullname = props.fullname; | ||
this.username = props.username; | ||
this.email = props.email; | ||
this.password = props.password; | ||
} | ||
constructor(props: CommandProps<SignupCommand>) { | ||
super(props); | ||
this.fullname = props.fullname; | ||
this.username = props.username; | ||
this.email = props.email; | ||
this.password = props.password; | ||
this.clientInfo = props.clientInfo; | ||
} | ||
} |
2 changes: 0 additions & 2 deletions
2
...curity/src/lib/authentication/application/commands/verify-password-reset-attempt/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.