mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1016 B
35 lines
1016 B
<h1 mat-dialog-title i18n>Sign in</h1>
|
|
<div mat-dialog-content>
|
|
<div>
|
|
<ng-container *ngIf="data.hasPermissionToUseSocialLogin">
|
|
<div class="text-center">
|
|
<a color="accent" href="/api/auth/google" mat-flat-button
|
|
><ion-icon class="mr-1" name="logo-google"></ion-icon
|
|
><span i18n>Sign in with Google</span></a
|
|
>
|
|
</div>
|
|
<div class="my-3 text-center text-muted" i18n>or</div>
|
|
</ng-container>
|
|
<mat-form-field appearance="outline" class="w-100">
|
|
<mat-label i18n>Security Token</mat-label>
|
|
<textarea
|
|
cdkTextareaAutosize
|
|
matInput
|
|
type="text"
|
|
[(ngModel)]="data.accessToken"
|
|
></textarea>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
<div class="float-right" mat-dialog-actions>
|
|
<button i18n mat-flat-button [mat-dialog-close]="undefined">Cancel</button>
|
|
<button
|
|
color="primary"
|
|
i18n
|
|
mat-flat-button
|
|
[disabled]="!data.accessToken"
|
|
[mat-dialog-close]="data"
|
|
>
|
|
Sign in
|
|
</button>
|
|
</div>
|
|
|