Browse Source
Feature/deactivate internet identity for account registration (#2293)
* Deactivate Internet Identity
* Update changelog
pull/2255/head^2
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
4 additions and
4 deletions
-
CHANGELOG.md
-
apps/api/src/app/auth/auth.service.ts
-
apps/client/src/app/pages/register/register-page.component.ts
-
apps/client/src/app/pages/register/register-page.html
|
|
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the validation in the activities import |
|
|
|
- Deactivated _Internet Identity_ as a social login provider for the account registration |
|
|
|
- Improved the language localization for German (`de`) |
|
|
|
- Refreshed the cryptocurrencies list |
|
|
|
- Changed the version in the `docker-compose` files from `3.7` to `3.9` |
|
|
|
|
|
@ -55,7 +55,7 @@ export class AuthService { |
|
|
|
const isUserSignupEnabled = |
|
|
|
await this.propertyService.isUserSignupEnabled(); |
|
|
|
|
|
|
|
if (!isUserSignupEnabled) { |
|
|
|
if (!isUserSignupEnabled || true) { |
|
|
|
throw new Error('Sign up forbidden'); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -4,7 +4,6 @@ import { Router } from '@angular/router'; |
|
|
|
import { DataService } from '@ghostfolio/client/services/data.service'; |
|
|
|
import { InternetIdentityService } from '@ghostfolio/client/services/internet-identity.service'; |
|
|
|
import { TokenStorageService } from '@ghostfolio/client/services/token-storage.service'; |
|
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
|
import { InfoItem, LineChartItem } from '@ghostfolio/common/interfaces'; |
|
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
|
import { Role } from '@prisma/client'; |
|
|
@ -36,8 +35,7 @@ export class RegisterPageComponent implements OnDestroy, OnInit { |
|
|
|
private dialog: MatDialog, |
|
|
|
private internetIdentityService: InternetIdentityService, |
|
|
|
private router: Router, |
|
|
|
private tokenStorageService: TokenStorageService, |
|
|
|
private userService: UserService |
|
|
|
private tokenStorageService: TokenStorageService |
|
|
|
) { |
|
|
|
this.info = this.dataService.fetchInfo(); |
|
|
|
|
|
|
|
|
|
@ -28,6 +28,7 @@ |
|
|
|
<ng-container *ngIf="hasPermissionForSocialLogin"> |
|
|
|
<div class="my-3 text-muted" i18n>or</div> |
|
|
|
<button |
|
|
|
*ngIf="false" |
|
|
|
class="d-block mb-2 px-4 rounded-pill" |
|
|
|
mat-stroked-button |
|
|
|
(click)="onLoginWithInternetIdentity()" |
|
|
|