Skip to content

Commit

Permalink
feat(package): ability to disable reset password #202
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Feb 28, 2019
1 parent 0d648c7 commit 265408f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ class AppComponent {
| appearance | Input() | MatFormFieldAppearance | `standard` | the appearance of the mat-form-field #'legacy' | 'standard' | 'fill' | 'outline'
| tabIndex | Input() | number | null; | `0` | the selected tab - either sign in or register
| registrationEnabled | Input() | boolean | `true` | whether the user is able to register a new account
| resetPasswordEnabled | Input() | boolean | `true` | whether the user is able to reset his account password
| guestEnabled | Input() | boolean | `true` | whether the user can sign in and continue as guest
| tosUrl | Input() | string | - | the url of term of services
| privacyPolicyUrl | Input() | string | - | the url of the private privacy
Expand Down
3 changes: 2 additions & 1 deletion src/module/components/auth/auth.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
</form>

<div fxLayoutAlign="center">
<button mat-button
<button *ngIf="resetPasswordEnabled"
mat-button
class="space-top"
[color]="color"
(click)="createForgotPasswordTab()">
Expand Down
3 changes: 3 additions & 0 deletions src/module/components/auth/auth.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export class AuthComponent implements OnInit, OnChanges, OnDestroy {
@Input()
registrationEnabled = true;

@Input()
resetPasswordEnabled = true;

@Input()
guestEnabled = true;

Expand Down

0 comments on commit 265408f

Please sign in to comment.